Skip to content

Commit

Permalink
Reinstate submodule pandas accessors to top-level imports
Browse files Browse the repository at this point in the history
  • Loading branch information
morganjwilliams committed Oct 29, 2024
1 parent 4f887c5 commit a607594
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyrolite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
pyrolite: A set of tools for getting the most from your geochemical data.
"""

from ._version import get_versions

__version__ = get_versions()["version"]
Expand All @@ -16,6 +17,11 @@

logger = Handle(__name__)

# initialise pandas accessors
from .comp import pyrocomp # noqa: E402
from .geochem import pyrochem # noqa: E402
from .plot import pyroplot # noqa: E402


def load_extensions(base="pyrolite_", replace=["util"]):
"""
Expand All @@ -41,9 +47,5 @@ def load_extensions(base="pyrolite_", replace=["util"]):
n = n.replace(r, "")
setattr(extensions, n, m)


# _export_pyrolite_mplstyle() should be called in .plot import regardless
matplotlib.style.use("pyrolite")

from . import _version
__version__ = _version.get_versions()['version']

0 comments on commit a607594

Please sign in to comment.