Skip to content

Commit

Permalink
Merge pull request #20 from lsst/tickets/PREOPS-4646
Browse files Browse the repository at this point in the history
tickets/PREOPS-4646: Support addition of opsim data to an archive for use by schedview-prenight
  • Loading branch information
ehneilsen authored Jan 16, 2024
2 parents 4d0b64e + b05caea commit 4853d59
Show file tree
Hide file tree
Showing 10 changed files with 798 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
mamba install --quiet --file=requirements.txt
mamba install --quiet pip
pip install lsst.resources
pip install "documenteer[guide]"
- name: install rubin_scheduler
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_and_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
run: |
mamba install --quiet --file=requirements.txt
mamba install --quiet --file=test-requirements.txt
pip install lsst.resources
- name: install rubin_scheduler
shell: bash -l {0}
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies = [
"requests",
"shapely",
"tqdm",
"lsst.resources",
]

[project.optional-dependencies]
Expand All @@ -53,6 +54,7 @@ dev = [
[project.scripts]
scheduler_download_data = "rubin_scheduler.data.scheduler_download_data:scheduler_download_data"
rs_download_sky = "rubin_scheduler.data.rs_download_sky:rs_download_sky"
archive_sim = "rubin_scheduler.sim_archive:make_sim_archive_cli"


[tool.setuptools.dynamic]
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ h5py
requests
shapely
tqdm
conda
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
1 change: 1 addition & 0 deletions rubin_scheduler/sim_archive/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .sim_archive import *
Loading

0 comments on commit 4853d59

Please sign in to comment.