Beispiel #1
0
"""Glotaran package __init__.py"""
from glotaran.deprecation.deprecation_utils import deprecate_submodule
from glotaran.deprecation.modules.glotaran_root import read_model_from_yaml
from glotaran.deprecation.modules.glotaran_root import read_model_from_yaml_file
from glotaran.deprecation.modules.glotaran_root import read_parameters_from_csv_file
from glotaran.deprecation.modules.glotaran_root import read_parameters_from_yaml
from glotaran.deprecation.modules.glotaran_root import read_parameters_from_yaml_file
from glotaran.plugin_system.base_registry import load_plugins

load_plugins()

__version__ = "0.6.0.dev0"

examples = deprecate_submodule(
    deprecated_module_name="glotaran.examples",
    new_module_name="glotaran.testing.simulated_data",
    to_be_removed_in_version="0.8.0",
    module_load_overwrite="glotaran.deprecation.modules.examples",
)


def __getattr__(attribute_name: str):
    from glotaran.deprecation.deprecation_utils import deprecate_module_attribute

    if attribute_name == "ParameterGroup":
        return deprecate_module_attribute(
            deprecated_qual_name="glotaran.ParameterGroup",
            new_qual_name="glotaran.parameter.ParameterGroup",
            to_be_removed_in_version="0.6.0",
        )

    raise AttributeError(
Beispiel #2
0
"""This package contains builtin plugins."""
from glotaran.deprecation.deprecation_utils import deprecate_submodule

read_data_file = deprecate_submodule(
    deprecated_module_name="glotaran.builtin.read_data_file",
    new_module_name="glotaran.builtin.io",
    to_be_removed_in_version="0.6.0",
)
Beispiel #3
0
"""Module containing a deprecated fake module."""
from glotaran.deprecation.deprecation_utils import deprecate_submodule

# just here to be tested
deprecated_module = deprecate_submodule(
    deprecated_module_name="glotaran.deprecation.test.dummy_package.deprecated_module",
    new_module_name="glotaran.deprecation.deprecation_utils",
    to_be_removed_in_version="0.6.0",
)
overwritten_module = deprecate_submodule(
    deprecated_module_name="glotaran.deprecation.test.dummy_package.overwritten_module",
    new_module_name="glotaran.does_not._need_to_exists",
    to_be_removed_in_version="0.6.0",
    module_load_overwrite="glotaran.deprecation.deprecation_utils",
)
Beispiel #4
0
"""Module containing a deprecated fake module."""
from glotaran.deprecation.deprecation_utils import deprecate_submodule

# just here to be tested
deprecated_module = deprecate_submodule(
    deprecated_module_name=
    "glotaran.deprecation.test.dummy_package.deprecated_module",
    new_module_name="glotaran.deprecation.deprecation_utils",
    to_be_removed_in_version="0.6.0",
)
Beispiel #5
0
"""This package contains functions for model simulation and fitting."""
from glotaran.deprecation.deprecation_utils import deprecate_submodule

result = deprecate_submodule(
    deprecated_module_name="glotaran.analysis.result",
    new_module_name="glotaran.project.result",
    to_be_removed_in_version="0.6.0",
)

scheme = deprecate_submodule(
    deprecated_module_name="glotaran.analysis.scheme",
    new_module_name="glotaran.project.scheme",
    to_be_removed_in_version="0.6.0",
)