Skip to content

Commit

Permalink
Merge pull request #7 from simonsobs/add-flex
Browse files Browse the repository at this point in the history
Add flex policy
  • Loading branch information
guanyilun authored Nov 6, 2023
2 parents a81ecf3 + ea23a5f commit 11856de
Show file tree
Hide file tree
Showing 5 changed files with 8,882 additions and 5,466 deletions.
4 changes: 3 additions & 1 deletion src/scheduler_server/configs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from .basic import config as basic_config
from .flex import config as flex_config

CONFIGS = {
'basic': basic_config
'basic': basic_config,
'flex': flex_config
}
def get_default_config(name):
return CONFIGS.get(name, {})
67 changes: 67 additions & 0 deletions src/scheduler_server/configs/flex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
config = """
blocks:
calibration:
saturn:
type: source
name: saturn
moon:
type: source
name: moon
rules:
- name: sun-avoidance
min_angle_az: 45
min_angle_alt: 45
time_step: 30
n_buffer: 10
- name: make-drift-scan
block_query: calibration
array_query: full
el_bore: 50
drift: true
post_rules:
- name: min-duration
min_duration: 600
merge_order:
- moon
- saturn
geometries:
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
"""
Loading

0 comments on commit 11856de

Please sign in to comment.