Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/essreduce/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dynamic = ["version"]
dependencies = [
"dask>=2022.1.0",
"graphviz>=0.20",
"lazy_loader>=0.4",
"sciline>=25.11.0",
"scipp>=26.3.1",
"scippneutron>=26.6.0",
Expand Down
14 changes: 12 additions & 2 deletions packages/essreduce/src/ess/reduce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import importlib.metadata

from . import nexus, normalization, polarization, uncertainty, unwrap
import lazy_loader as lazy

try:
__version__ = importlib.metadata.version("essreduce")
Expand All @@ -12,4 +12,14 @@

del importlib

__all__ = ["nexus", "normalization", "polarization", "uncertainty", "unwrap"]
__getattr__, __dir__, __all__ = lazy.attach(
__name__,
submodules=[
"nexus",
"normalization",
"polarization",
"streaming",
"uncertainty",
"unwrap",
],
)
13 changes: 13 additions & 0 deletions packages/essreduce/src/ess/reduce/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)

from . import (
nexus, # noqa: F401
normalization, # noqa: F401
polarization, # noqa: F401
streaming, # noqa: F401
uncertainty, # noqa: F401
unwrap, # noqa: F401
)

__version__: str
Loading