Skip to content

Commit

Permalink
added wrapper modules to renamed modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanchamberlain committed Feb 10, 2025
1 parent 9b47d5f commit aeede6c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion cobaya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from cobaya.post import post
from cobaya.output import load_samples


if sys.version_info < (3, 8):
print('Cobaya requires Python 3.8+, please upgrade.')
sys.exit(1)
Expand Down
2 changes: 2 additions & 0 deletions cobaya/cobaya_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
TheoryDictIn = InfoDictIn
SamplerDictIn = InfoDictIn

from math import *

ParamValuesDict = Dict[str, float]
# Do not yet explicitly support passing instances here
TheoriesDict = Dict[str, Union[None, TheoryDict, Type]]
Expand Down
7 changes: 7 additions & 0 deletions cobaya/input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import warnings
from cobaya import cobaya_input # Replace with actual new path

warnings.warn("cobaya.input is deprecated. Use cobaya.cobaya_input instead.", DeprecationWarning, stacklevel=2)

# Expose everything from the new module
globals().update(vars(cobaya_input))
7 changes: 7 additions & 0 deletions cobaya/typing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import warnings
from cobaya import cobaya_typing # Replace with actual new path

warnings.warn("cobaya.typing is deprecated. Use cobaya.cobaya_typing instead.", DeprecationWarning, stacklevel=2)

# Expose everything from the new module
globals().update(vars(cobaya_typing))
7 changes: 7 additions & 0 deletions cobaya/yaml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import warnings
from cobaya import cobaya_yaml # Replace with actual new path

warnings.warn("cobaya.yaml is deprecated. Use cobaya.cobaya_yaml instead.", DeprecationWarning, stacklevel=2)

# Expose everything from the new module
globals().update(vars(cobaya_yaml))

0 comments on commit aeede6c

Please sign in to comment.