-
Notifications
You must be signed in to change notification settings - Fork 1
Various GUI Updates since 5/18 commissioning night #472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
prkrtg
wants to merge
20
commits into
main
Choose a base branch
from
pgupta/comm_18_fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,802
−410
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
152db27
calib fix
prkrtg c4a69d1
seq do all
prkrtg fcdb4ac
put back calib gui
prkrtg d704207
daemon state
prkrtg d9a3b1e
Added dome flat calibration
prkrtg e20ba4f
Added dome flat calibration
prkrtg cbf8673
remove set when inserting
prkrtg 555b321
Added OTMCass
prkrtg 2710b5b
remove SET
prkrtg 2a90e1f
Add otm stuff
prkrtg 511a138
nexp fix
prkrtg 26d1c09
update seq zmq
prkrtg b9d8edf
Calibration and messages update
prkrtg 1158b78
update colors
prkrtg d0d276d
ypdate csv path
prkrtg 09e7bb6
remove all topic logs
prkrtg 24af0ee
more fixes
prkrtg 7b7d4bb
more fixes
prkrtg 5f6b6d4
update status
prkrtg 1ba9189
matt CAL fixes
prkrtg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| #!/usr/bin/bash -f | ||
| # | ||
| # Through-focus | ||
| # | ||
| # 1. Turn lamp off | ||
| # 2. Set exposure time | ||
| # 3. Take 3 darks | ||
| # 4. Turn lamp on; wait a minute or two | ||
| # 5. Put focus stage on the + side of the loop | ||
| # 6. Loop over focus positions, take 2 (3?) illuminated exposures at each | ||
| # 7. Turn off the lamp | ||
| # 8. Take 3 darks | ||
| # 9. Exit | ||
| # | ||
| # | ||
| # | ||
| # | ||
| # 1. Turn lamp off | ||
| # Using Argon lamp. | ||
|
|
||
| calib set door=open cover=close | ||
| power lampthar on | ||
| calib lampmod 6 1 1000 | ||
|
|
||
|
|
||
|
|
||
| # 2. Exposure time. | ||
| camera exptime 10000 | ||
| # | ||
|
|
||
| # 3. Camera BOI | ||
| camera boi R 410 200 | ||
| camera boi I 580 200 | ||
| camera boi G 360 200 | ||
| ### Add G channel BOI | ||
| ### Add U channel BOI once BOI with binning works. | ||
| # camera boi U 800 200 | ||
|
|
||
| # 3.5 Get some information from the camera and set some information | ||
| imnum0=(`camera imnum`[1]) | ||
| basename=(`camera basename`[1]) | ||
|
|
||
| focusbase="focus_internal_`date +%g%m%d_%H%M%S`" | ||
|
|
||
| camera basename $focusbase | ||
|
|
||
| # 4. Turn on lamp and wait | ||
| fociI=( 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 ) | ||
| fociR=( 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 ) | ||
| fociG=( 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 ) | ||
| ### Add fociU | ||
| focpos="1 2 3 4 5 6 7 8 9 10 11 12" | ||
| echo $foci | ||
| for fp in $focpos; do | ||
| # set the focus | ||
| # focus set I $focus | ||
| echo " FOC I ${fociI[$fp]} R ${fociR[$fp]} G ${fociG[$fp]} No `camera imnum`" | ||
| focus set I ${fociI[$fp]} | ||
| focus set R ${fociR[$fp]} | ||
| focus set G ${fociG[$fp]} | ||
| ### focus set G ${fociG[$fp]} | ||
| ### focus set U ..... | ||
| echo | ||
| sleep 4 | ||
| imnum1=(`camera imnum`[1]) | ||
| exposen 1 | ||
| done | ||
| # | ||
| # Turn off lamp | ||
| # power 2 3 off | ||
| # | ||
| # ./goexpose | ||
| # ./goexpose | ||
| # ./goexpose | ||
| # | ||
|
|
||
|
|
||
| camera basename $basename | ||
|
|
||
| power lampthar off | ||
| calib lampmod 6 0 1000 | ||
| calib set door=close | ||
|
|
||
| # revert BOI | ||
| camera boi R full | ||
| camera boi I full | ||
| camera boi G full | ||
| # camera boi U full | ||
| #Add camera boi U full | ||
|
|
||
| # now set the foci to nominal values, just because we can | ||
|
|
||
| focus set G 3.35 | ||
| focus set R 2.45 | ||
| focus set I 4.75 | ||
|
|
||
|
|
||
| # now run the analysis script. | ||
|
|
||
|
|
||
|
|
||
|
|
||
| # now display the results | ||
|
|
||
|
|
||
| allfiles="$focusbase*.fits" | ||
| cd /home/observer/focus/ | ||
| /home/developer/Software/run/focus_spec.py /data/latest/$allfiles -fa x -fk FOCUS -G /home/observer/focus/gfocus.reg | ||
|
|
||
|
|
||
| eog focus_spec_?.png | ||
|
|
||
| echo "Done." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| #!/usr/bin/bash -f | ||
| # | ||
| # Through-focus | ||
| # | ||
| # 1. Turn lamp off | ||
| # 2. Set exposure time | ||
| # 3. Take 3 darks | ||
| # 4. Turn lamp on; wait a minute or two | ||
| # 5. Put focus stage on the + side of the loop | ||
| # 6. Loop over focus positions, take 2 (3?) illuminated exposures at each | ||
| # 7. Turn off the lamp | ||
| # 8. Take 3 darks | ||
| # 9. Exit | ||
| # | ||
| # | ||
| # | ||
| # | ||
| # 1. Turn lamp off | ||
| # Using Argon lamp. | ||
|
|
||
| calib set door=open cover=close | ||
| power lampthar on | ||
| calib lampmod 6 1 1000 | ||
|
|
||
|
|
||
|
|
||
| # 2. Exposure time. | ||
| camera exptime 10000 | ||
| # | ||
|
|
||
| # 3. Camera BOI | ||
| camera boi R 410 200 | ||
| camera boi I 580 200 | ||
| camera boi G 360 200 | ||
| ### Add G channel BOI | ||
| ### Add U channel BOI once BOI with binning works. | ||
| camera boi U 800 200 | ||
|
|
||
| # 3.5 Get some information from the camera and set some information | ||
| imnum0=(`camera imnum`[1]) | ||
| basename=(`camera basename`[1]) | ||
|
|
||
| focusbase="focus_internal_`date +%g%m%d_%H%M%S`" | ||
|
|
||
| camera basename $focusbase | ||
|
|
||
| # 4. Turn on lamp and wait | ||
| fociI=( 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 ) | ||
| fociR=( 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 ) | ||
| fociG=( 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 ) | ||
| ### Add fociU | ||
| focpos="1 2 3 4 5 6 7 8 9 10 11 12" | ||
| echo $foci | ||
| for fp in $focpos; do | ||
| # set the focus | ||
| # focus set I $focus | ||
| echo " FOC I ${fociI[$fp]} R ${fociR[$fp]} G ${fociG[$fp]} No `camera imnum`" | ||
| focus set I ${fociI[$fp]} | ||
| focus set R ${fociR[$fp]} | ||
| focus set G ${fociG[$fp]} | ||
| ### focus set G ${fociG[$fp]} | ||
| ### focus set U ..... | ||
| echo | ||
| sleep 4 | ||
| imnum1=(`camera imnum`[1]) | ||
| exposen 1 | ||
| done | ||
| # | ||
| # Turn off lamp | ||
| # power 2 3 off | ||
| # | ||
| # ./goexpose | ||
| # ./goexpose | ||
| # ./goexpose | ||
| # | ||
|
|
||
|
|
||
| camera basename $basename | ||
|
|
||
| power lampthar off | ||
| calib lampmod 6 0 1000 | ||
| calib set door=close | ||
|
|
||
| # revert BOI | ||
| camera boi R full | ||
| camera boi I full | ||
| camera boi G full | ||
| camera boi U full | ||
| #Add camera boi U full | ||
|
|
||
| # now set the foci to nominal values, just because we can | ||
|
|
||
| focus set G 3.35 | ||
| focus set R 2.45 | ||
| focus set I 4.75 | ||
|
|
||
|
|
||
| # now run the analysis script. | ||
|
|
||
|
|
||
|
|
||
|
|
||
| # now display the results | ||
|
|
||
|
|
||
| allfiles="$focusbase*.fits" | ||
| cd /home/observer/focus/ | ||
| /home/developer/Software/run/focus_spec.py /data/latest/$allfiles -fa x -fk FOCUS -G /home/observer/focus/gfocus.reg | ||
|
|
||
|
|
||
| eog focus_spec_?.png | ||
|
|
||
| echo "Done." |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bash scripts :(