Skip to content

Commit a607594

Browse files
Reinstate submodule pandas accessors to top-level imports
1 parent 4f887c5 commit a607594

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pyrolite/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
pyrolite: A set of tools for getting the most from your geochemical data.
33
"""
4+
45
from ._version import get_versions
56

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

1718
logger = Handle(__name__)
1819

20+
# initialise pandas accessors
21+
from .comp import pyrocomp # noqa: E402
22+
from .geochem import pyrochem # noqa: E402
23+
from .plot import pyroplot # noqa: E402
24+
1925

2026
def load_extensions(base="pyrolite_", replace=["util"]):
2127
"""
@@ -41,9 +47,5 @@ def load_extensions(base="pyrolite_", replace=["util"]):
4147
n = n.replace(r, "")
4248
setattr(extensions, n, m)
4349

44-
4550
# _export_pyrolite_mplstyle() should be called in .plot import regardless
4651
matplotlib.style.use("pyrolite")
47-
48-
from . import _version
49-
__version__ = _version.get_versions()['version']

0 commit comments

Comments
 (0)