Skip to content

Commit 6f7dc53

Browse files
committed
In auxtel/make_scheduler.py, add option to pass cwfs time gap.
1 parent 7de746c commit 6f7dc53

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/lsst/ts/fbs/utils/auxtel/make_scheduler.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def get_scheduler(
173173
spec_detailers: typing.List[BaseDetailer],
174174
image_detailers: typing.List[BaseDetailer],
175175
avoid_wind: bool = True,
176+
cwfs_time_gap: float = 120.0,
176177
) -> typing.Tuple[int, CoreScheduler]:
177178
"""Construct feature based scheduler for spectroscopic survey with
178179
image survey in the background (with lower priority).
@@ -196,6 +197,11 @@ def get_scheduler(
196197
List of Detailers used for spectroscopic survey.
197198
image_detailers : `list` of `BaseDetailer`
198199
List of Detailers used for image survey.
200+
avoid_wind : `bool`
201+
If True, include AvoidDirectWind basis function in spectroscopic
202+
survey.
203+
cwfs_time_gap : `int`
204+
Time gap in minutes for cwfs survey.
199205
200206
Returns
201207
-------
@@ -214,7 +220,7 @@ def get_scheduler(
214220
cwfs_survey: typing.List[BaseSurvey] = [
215221
generate_cwfs_survey(
216222
nside=nside,
217-
time_gap_min=120.0,
223+
time_gap_min=cwfs_time_gap,
218224
wind_speed_maximum=wind_speed_maximum,
219225
),
220226
]

0 commit comments

Comments
 (0)