Skip to content

Commit

Permalink
deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Nov 15, 2023
1 parent 4fd103b commit 2536a49
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rubin_sim/scheduler/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import warnings

from rubin_scheduler.scheduler import *

warnings.simplefilter("default")
warnings.warn("rubin_sim.scheduler is deprecated, switch to rubin_scheduler.scheduler", DeprecationWarning)
9 changes: 9 additions & 0 deletions rubin_sim/skybrightness_pre/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import warnings

from rubin_scheduler.skybrightness_pre import *

warnings.simplefilter("default")
warnings.warn(
"rubin_sim.skybrightness_pre is deprecated, switch to rubin_scheduler.skybrightness_pre",
DeprecationWarning,
)
6 changes: 6 additions & 0 deletions rubin_sim/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import warnings

from rubin_scheduler.utils import *

warnings.simplefilter("default")
warnings.warn("rubin_sim.utils is deprecated, switch to rubin_scheduler.utils", DeprecationWarning)

0 comments on commit 2536a49

Please sign in to comment.