Skip to content

Commit

Permalink
import get_baseline from rubin_sim instead of rubin_scheduler in sche…
Browse files Browse the repository at this point in the history
…dview
  • Loading branch information
ehneilsen committed Jun 20, 2024
1 parent c39c63a commit 9c80a90
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_compute_maf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest

import numpy as np
from rubin_scheduler.data import get_baseline
from rubin_scheduler.utils import survey_start_mjd
from rubin_sim.data import get_baseline

from schedview.collect import read_opsim

Expand Down
2 changes: 1 addition & 1 deletion tests/test_compute_visits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import numpy as np
from astropy.time import Time
from rubin_scheduler.data import get_baseline
from rubin_scheduler.utils import survey_start_mjd
from rubin_sim.data import get_baseline

import schedview.collect
import schedview.compute.visits
Expand Down
2 changes: 2 additions & 0 deletions tests/test_nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path
from tempfile import TemporaryDirectory

import astropy.utils.iers
import bokeh
import pandas as pd
from rubin_scheduler.scheduler.model_observatory import ModelObservatory
Expand Down Expand Up @@ -34,6 +35,7 @@ def _create_almanac(night):
class TestNightly(unittest.TestCase):
def test_plot_airmass_vs_time(self):
visits = _load_sample_visits()
astropy.utils.iers.conf.iers_degraded_accuracy = "ignore"
almanac_events = _create_almanac(visits["start_date"].dt.date[0])

fig = schedview.plot.nightly.plot_airmass_vs_time(visits, almanac_events)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_overhead.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import bokeh
from astropy.time import Time
from rubin_scheduler.data import get_baseline
from rubin_scheduler.utils import survey_start_mjd
from rubin_sim.data import get_baseline

import schedview.collect
import schedview.compute.visits
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot_cadence.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import bokeh.models.layouts
import numpy as np
from rubin_scheduler.data import get_baseline
from rubin_sim.data import get_baseline

import schedview.collect
import schedview.compute.visits
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import healpy as hp
import numpy as np
from astropy.time import Time
from rubin_scheduler.data import get_baseline
from rubin_scheduler.scheduler.model_observatory import ModelObservatory
from rubin_scheduler.utils import survey_start_mjd
from rubin_sim.data import get_baseline
from uranography.api import SphereMap

import schedview.collect
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot_visits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import bokeh
from astropy.time import Time
from rubin_scheduler.data import get_baseline
from rubin_scheduler.utils import survey_start_mjd
from rubin_sim.data import get_baseline

import schedview.collect
import schedview.plot
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pandas as pd
from astropy.time import Time
from lsst.resources import ResourcePath
from rubin_scheduler.data import get_baseline
from rubin_sim.data import get_baseline

from schedview.collect.opsim import read_ddf_visits, read_opsim
from schedview.collect.resources import find_file_resources
Expand Down

0 comments on commit 9c80a90

Please sign in to comment.