-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from simonsobs/multi-platform
add sat policy and support config preset
- Loading branch information
Showing
8 changed files
with
1,560 additions
and
8,844 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from .basic import config as basic_config | ||
from .flex import config as flex_config | ||
from .sat import config_satp1 | ||
|
||
CONFIGS = { | ||
'basic': basic_config, | ||
'flex': flex_config | ||
'flex': flex_config, | ||
'satp1': config_satp1, | ||
} | ||
def get_default_config(name): | ||
return CONFIGS.get(name, {}) | ||
def get_config(preset): | ||
if preset not in CONFIGS: | ||
raise ValueError(f'Unknown config preset {preset}') | ||
return CONFIGS[preset] |
This file contains 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
1,385 changes: 1,385 additions & 0 deletions
1,385
src/scheduler_server/configs/data/satp1_baseline_20231031.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,104 @@ | ||
import os.path as op | ||
|
||
geometries_satp1 = { | ||
'full': { | ||
'left': { | ||
'ws6': { | ||
'center': [-10.9624, 6.46363], | ||
'radius': 6, | ||
}, | ||
'ws5': { | ||
'center': [-10.9624, -6.46363], | ||
'radius': 6, | ||
}, | ||
}, | ||
'middle': { | ||
'ws1': { | ||
'center': [0, 12.634], | ||
'radius': 6, | ||
}, | ||
'ws0': { | ||
'center': [0, 0], | ||
'radius': 6, | ||
}, | ||
'ws4': { | ||
'center': [0, -12.634], | ||
'radius': 6, | ||
}, | ||
}, | ||
'right': { | ||
'ws2': { | ||
'center': [10.9624, 6.46363], | ||
'radius': 6, | ||
}, | ||
'ws3': { | ||
'center': [10.9624, -6.46363], | ||
'radius': 6, | ||
}, | ||
}, | ||
}, | ||
'bottom' : { | ||
'ws4': { | ||
'center': [0, -12.634], | ||
'radius': 6, | ||
}, | ||
'ws3': { | ||
'center': [10.9624, -6.46363], | ||
'radius': 6, | ||
}, | ||
'ws5': { | ||
'center': [-10.9624, -6.46363], | ||
'radius': 6, | ||
}, | ||
} | ||
} | ||
|
||
blocks = { | ||
'calibration': { | ||
'saturn': { | ||
'type' : 'source', | ||
'name' : 'saturn', | ||
}, | ||
'moon': { | ||
'type' : 'source', | ||
'name' : 'moon', | ||
}, | ||
}, | ||
'baseline': { | ||
'cmb': { | ||
'type': 'toast', | ||
'file': op.join(op.dirname(__file__), 'data/satp1_baseline_20231031.txt'), | ||
} | ||
} | ||
} | ||
|
||
config_satp1 = { | ||
'blocks': blocks, | ||
'geometries': geometries_satp1, | ||
'rules': { | ||
'sun-avoidance': { | ||
'min_angle_az': 45, | ||
'min_angle_alt': 45, | ||
}, | ||
'min-duration': { | ||
'min_duration': 600 | ||
}, | ||
'az-range': { | ||
'az_range': [-90, 450], | ||
'trim': True | ||
} | ||
}, | ||
'cal_targets': [ | ||
# (source, array_query, el_bore, tag) | ||
('saturn', 'left', 50, 'left_focal_plane'), | ||
('saturn', 'mid', 50, 'mid_focal_plane'), | ||
('saturn', 'right', 50, 'right_focal_plane'), | ||
], | ||
'merge_order': ['calibration', 'baseline'], | ||
'time_costs': { | ||
'det_setup': 40*60, | ||
'bias_step': 60, | ||
'ufm_relock': 120, | ||
}, | ||
'ufm_relock': True, | ||
} |
Oops, something went wrong.