modelparameters.sympy.deprecated package¶
Submodules¶
modelparameters.sympy.deprecated.class_registry module¶
- class modelparameters.sympy.deprecated.class_registry.ClassRegistry[source]¶
Bases:
Registry
Namespace for SymPy classes
This is needed to avoid problems with cyclic imports. To get a SymPy class, use C.<class_name> e.g. C.Rational, C.Add.
For performance reasons, this is coupled with a set all_classes holding the classes, which should not be modified directly.
Module contents¶
This module contains deprecations that could not stay in their original module for some reason.
Such reasons include: - Original module had to be removed. - Adding @deprecated to a declaration caused an import cycle.
Since no modules in SymPy ever depend on deprecated code, SymPy always imports this last, after all other modules have been imported.