Skip to content
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

Another sun safety edge case #124

Open
kmharrington opened this issue Oct 26, 2024 · 0 comments
Open

Another sun safety edge case #124

kmharrington opened this issue Oct 26, 2024 · 0 comments

Comments

@kmharrington
Copy link
Member

Working on the satp2-special branch but I've merged in Brian's updates on the syntax.

Config file

platform: satp1

# yaml loads iso format automatically into datetimes
t0: 2024-11-01T20:00:00+00:00
t1: 2024-11-02T20:00:00+00:00
#t0_state_file: None
t0_state_file: satp1/state_files/state_2024-11-01T20:00:00+00:00.npy

elevation: 60
boresight: 0
az_speed: 0.5
az_accel: 1.0

# optional, only needed if running non-defaults
hwp_dir: True # True: forwards, False: backwards
run_relock: True # Relock detectors at the beginning of the schedule
home_at_end: True # Home: spin down HWP and go to (180,60)

Result:

run.acu.move_to(az=49.108, el=60.0)

################### Detector Setup######################
with disable_trace():
    run.initialize()
run.smurf.take_bgmap(concurrent=True)
run.smurf.take_noise(concurrent=True, tag='res_check')
run.smurf.iv_curve(concurrent=True, 
    iv_kwargs={'run_serially': False, 'cool_wait': 60*5})
run.smurf.bias_dets(concurrent=True)
time.sleep(180)
run.smurf.bias_step(concurrent=True)
run.smurf.take_noise(concurrent=True, tag='bias_check')
#################### Detector Setup Over ####################

# hwp already spinning
run.seq.scan(
    description='NE. First choice',
    stop_time='2024-11-02T10:40:48+00:00', <-------------this line was originally 10:43 and it made the next move not sun safe
    width=40.0, az_drift=0,
    subtype='cmb', tag='49-89',
    min_duration=600,
)

run.acu.move_to(az=208.517, el=60.0)
# hwp already spinning
run.smurf.bias_step(concurrent=True)
run.seq.scan(
    description='SOUTHERN FIELD : SW=2nd, 3rd or 4th choice',
    stop_time='2024-11-02T11:47:36+00:00',
    width=40.0, az_drift=0,
    subtype='cmb', tag='209-249',
    min_duration=600,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant