Skip to content

Commit d4bf359

Browse files
authored
Merge pull request #615 from scipp/fix-submodules-import
Fix submodules lazy imports
2 parents 6e7d7d9 + 2d18dfd commit d4bf359

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/scippneutron/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@
2323

2424
import lazy_loader as lazy
2525

26-
submodules = ['atomschopper', 'io', 'conversion']
26+
submodules = [
27+
'absorption',
28+
'atoms',
29+
'chopper',
30+
'io',
31+
'conversion',
32+
'data',
33+
'metadata',
34+
'peaks',
35+
'tof',
36+
]
2737

2838
__getattr__, __dir__, __all__ = lazy.attach(
2939
__name__,

tests/io/sqw/sqw_horace_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def matlab() -> Any:
3434
except RuntimeError as e:
3535
if "No supported MATLAB" in e.args[0]:
3636
pytest.skip("MATLAB is unavailable")
37+
else:
38+
raise
3739

3840

3941
@pytest.fixture

0 commit comments

Comments
 (0)