Skip to content

Commit

Permalink
refactor: move characterization to io
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Apr 25, 2024
1 parent 1bbcc24 commit 9c30f1b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 44 deletions.
14 changes: 2 additions & 12 deletions docs/source/erlab.accessors.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
Extensions to xarray (:mod:`erlab.accessors`)
=============================================
Accessors (:mod:`erlab.accessors`)
==================================

.. automodule:: erlab.accessors


.. rubric:: Classes

.. autosummary::

PlotAccessor
ImageToolAccessor
SelectionAccessor
MomentumAccessor
4 changes: 0 additions & 4 deletions docs/source/erlab.characterization.rst

This file was deleted.

20 changes: 9 additions & 11 deletions docs/source/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
API Reference
*************

ERLabPy is organized into multiple subpackages and submodules.
ERLabPy is organized into multiple subpackages and submodules classified by their functionality. The following table lists the subpackages and submodules of ERLabPy.

Subpackages
===========

======================== ========================
Subpackage Description
======================== ========================
`erlab.analysis` Data analysis
`erlab.io` Read & write ARPES data
`erlab.plotting` Plot
`erlab.interactive` Interactive plotting based on Qt and pyqtgraph
`erlab.characterization` Analyze sample characterization results such as XRD and transport measurements
`erlab.analysis` Routines for analyzing ARPES data.
`erlab.io` Reading and writing data.
`erlab.plotting` Functions related to static plotting with matplotlib.
`erlab.interactive` Interactive tools and widgets based on Qt and pyqtgraph
`erlab.accessors` `xarray accessors <https://docs.xarray.dev/en/stable/internals/extending-xarray.html>`_. You will not need to import this module directly.
======================== ========================

.. currentmodule:: erlab
Expand All @@ -26,7 +26,7 @@ Subpackage Description
erlab.io
erlab.plotting
erlab.interactive
erlab.characterization
erlab.accessors

Submodules
==========
Expand All @@ -35,15 +35,13 @@ Submodules
Submodule Description
================== ==================
`erlab.lattice` Tools for working with real and reciprocal lattices.
`erlab.constants` Physical constants and unit conversion
`erlab.accessors` `xarray accessors <https://docs.xarray.dev/en/stable/internals/extending-xarray.html>`_
`erlab.parallel` Helpers for parallel processing
`erlab.constants` Physical constants and functions for unit conversion.
`erlab.parallel` Helpers for parallel processing.
================== ==================

.. toctree::
:hidden:

erlab.lattice
erlab.constants
erlab.accessors
erlab.parallel
23 changes: 8 additions & 15 deletions src/erlab/characterization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
"""
Data import and analysis for characterization experiments.
.. currentmodule:: erlab.characterization
Modules
=======
.. autosummary::
:toctree: generated
xrd
resistance
"""
import warnings
from erlab.io.characterization import xrd, resistance # noqa: F401

warnings.warn(
"`erlab.characterization` is deprecated. Use `erlab.io.characterization` instead",
DeprecationWarning,
stacklevel=2,
)
1 change: 1 addition & 0 deletions src/erlab/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
utilities
igor
exampledata
characterization
For a single session, it is very common to use only one type of loader for a single
Expand Down
14 changes: 14 additions & 0 deletions src/erlab/io/characterization/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Data import for characterization experiments.
.. currentmodule:: erlab.io.characterization
Modules
=======
.. autosummary::
:toctree:
xrd
resistance
"""
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Functions related to analyzing temperature-dependent resistance data.
"""Functions related to loading temperature-dependent resistance data.
Currently only supports loading raw data from ``.dat`` and ``.csv`` files output by
physics lab III equipment.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Functions related to analyzing x-ray diffraction spectra.
"""Functions related to loading x-ray diffraction spectra.
Currently only supports loading raw data from igor ``.itx`` files.
Expand Down

0 comments on commit 9c30f1b

Please sign in to comment.