Skip to content

Commit

Permalink
set nside in DDFs so roi works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ehneilsen committed Jan 5, 2024
1 parent bf9afed commit 554b4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rubin_scheduler/scheduler/example/example_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,10 +1087,10 @@ def ddf_surveys(detailers=None, season_unobs_frac=0.2, euclid_detailers=None, ns
euclid_obs = np.where((obs_array["note"] == "DD:EDFS_b") | (obs_array["note"] == "DD:EDFS_a"))[0]
all_other = np.where((obs_array["note"] != "DD:EDFS_b") & (obs_array["note"] != "DD:EDFS_a"))[0]

survey1 = ScriptedSurvey([bf.AvoidDirectWind(nside=nside)], detailers=detailers)
survey1 = ScriptedSurvey([bf.AvoidDirectWind(nside=nside)], nside=nside, detailers=detailers)
survey1.set_script(obs_array[all_other])

survey2 = ScriptedSurvey([bf.AvoidDirectWind(nside=nside)], detailers=euclid_detailers)
survey2 = ScriptedSurvey([bf.AvoidDirectWind(nside=nside)], nside=nside, detailers=euclid_detailers)
survey2.set_script(obs_array[euclid_obs])

return [survey1, survey2]
Expand Down

0 comments on commit 554b4cc

Please sign in to comment.