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

SCHED-733: Change default values for initial conditions #511

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scheduler/core/components/selector/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class Selector(SchedulerComponent):
_wind_spd_bound: ClassVar[Quantity] = 10. * u.m / u.s

# Default values for resetting variants.
_default_iq: ClassVar[ImageQuality] = ImageQuality.IQANY
_default_cc: ClassVar[CloudCover] = CloudCover.CCANY
_default_iq: ClassVar[ImageQuality] = ImageQuality.IQ70
_default_cc: ClassVar[CloudCover] = CloudCover.CC70
_default_wind_dir: ClassVar[Angle] = Angle(0., unit=u.deg)
_default_wind_spd: ClassVar[Quantity] = 0.0 * (u.m / u.s)

Expand Down
2 changes: 1 addition & 1 deletion scheduler/services/environment/ocs_env_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_initial_conditions(self,
df_iq = filtered_df[OcsEnvService._iq_col_initial].iloc[0]
iq = ImageQuality.IQ70 if df_iq == 'na' else (ImageQuality(int(df_iq)/100) if df_iq != 'ANY' else ImageQuality.IQANY)
df_cc = filtered_df[OcsEnvService._cc_col_initial].iloc[0]
cc = CloudCover.CC50 if df_cc == 'na' else (CloudCover(int(df_cc)/100) if df_cc != 'ANY' else CloudCover.CCANY)
cc = CloudCover.CC70 if df_cc == 'na' else (CloudCover(int(df_cc)/100) if df_cc != 'ANY' else CloudCover.CCANY)

return VariantSnapshot(iq=iq,
cc=cc,
Expand Down
Loading