pyreduce-astro 0.6.0b1__py3-none-any.whl → 0.6.0b2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyreduce/__init__.py CHANGED
@@ -4,7 +4,7 @@ except ImportError: # for Python<3.8
4
4
  from importlib_metadata import PackageNotFoundError, version
5
5
 
6
6
  try:
7
- __version__ = version(__name__)
7
+ __version__ = version("pyreduce-astro")
8
8
  except PackageNotFoundError:
9
9
  __version__ = "unknown"
10
10
 
@@ -54,5 +54,13 @@ logger.addHandler(console)
54
54
  del logging
55
55
  # do not del tqdm, it is needed in the Log Handler
56
56
 
57
- # Load externally available modules
58
- from . import configuration, datasets, reduce, util
57
+
58
+ # Lazy loading for faster imports
59
+ def __getattr__(name):
60
+ """Lazy load submodules on first access."""
61
+ if name in ("configuration", "datasets", "reduce", "util"):
62
+ import importlib
63
+ module = importlib.import_module(f".{name}", __name__)
64
+ globals()[name] = module
65
+ return module
66
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyreduce-astro
3
- Version: 0.6.0b1
3
+ Version: 0.6.0b2
4
4
  Summary: A data reduction package for echelle spectrographs
5
5
  Project-URL: Homepage, https://github.com/ivh/PyReduce
6
6
  Project-URL: Documentation, https://pyreduce.readthedocs.io
@@ -1,4 +1,4 @@
1
- pyreduce/__init__.py,sha256=1ggVdMOf-WNDYTuMNdiogv0C2lotFXsX433wJdJgigU,1421
1
+ pyreduce/__init__.py,sha256=dA7KPdGmKFRPu5B-FOnslWTQLHVEkZlO0hySwWh_AGY,1729
2
2
  pyreduce/__main__.py,sha256=x59nq52i35-56M-4crL97XNnpCsMD6HwbWwUni4SXfI,3095
3
3
  pyreduce/clipnflip.py,sha256=yL_ESobmpVopzEG_jGXeXu63MKnQGSyEW1uAGl7inFE,5557
4
4
  pyreduce/combine_frames.py,sha256=xPG-k_Z5Bf7bL6Io3OuHHlsVVlb95wU-QKggXB7RpJo,29196
@@ -17,8 +17,8 @@ pyreduce/trace_orders.py,sha256=DxSvWA2rMjxYhyxwtF1AFmKcUGarsZ0ic0Sq-gqMExg,2067
17
17
  pyreduce/util.py,sha256=xu41l56zMVjuP9129dU45L05UHGXph9DtpIdUyB7VYY,37188
18
18
  pyreduce/wavelength_calibration.py,sha256=GNHTOUoGjk5l0TJ7ggaPX5fxZLBPJxuXEjcV3sTJuRs,68564
19
19
  pyreduce/clib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- pyreduce/clib/_slitfunc_2d.cpython-313-darwin.so,sha256=IFT6wVAmX_DzcZ0RxxuNig1d-WAdmGnrz1jGrMB68kQ,69872
21
- pyreduce/clib/_slitfunc_bd.cpython-313-darwin.so,sha256=FdHME472kNtjPtu7bItmem5HFQmlXXlyb2Lt3LFgC5I,52240
20
+ pyreduce/clib/_slitfunc_2d.cpython-313-darwin.so,sha256=DI56HNhl66l-r3_8X_O8tKORd_C3SRUGat_FqZh9IF8,69872
21
+ pyreduce/clib/_slitfunc_bd.cpython-313-darwin.so,sha256=mJxoOp_7M9DguObQkClGAM-_iREQOH4BkDKHOrPseC8,52240
22
22
  pyreduce/clib/build_extract.py,sha256=Jf1nqWUIR_fnlnUrwpiWJd-sNP6Yq2WZPC5mKqCOUbY,1945
23
23
  pyreduce/clib/slit_func_2d_xi_zeta_bd.c,sha256=o_R_3hq0tX2ZdaCRxJjY2mXQf4RaYENcVKVn2OZR_Rk,51279
24
24
  pyreduce/clib/slit_func_2d_xi_zeta_bd.h,sha256=vQkOPIzNzOa32D-iW1_qoQDp4jtaKjSHUYCiDMIIcq4,1512
@@ -145,7 +145,7 @@ pyreduce/wavecal/xshooter_nir.npz,sha256=0Fu5wxWutc8072n8Hk2AZAWSlyT4WdhJuhh0OzU
145
145
  pyreduce/wavecal/atlas/thar.fits,sha256=nPPNStZ281iPUNsOXu3YJfHNlnHBd1CWMLwTuZL8vvo,1529218
146
146
  pyreduce/wavecal/atlas/thar_list.txt,sha256=saK3YW1slxlXGeulZDdILWf952XOWToJcUULVSHMe6k,63515
147
147
  pyreduce/wavecal/atlas/une.fits,sha256=egHlchdM4AN9MSksEI5MlHkmB3g1G1VhEdzhUG3XU8I,2949057
148
- pyreduce_astro-0.6.0b1.dist-info/METADATA,sha256=j2O8O0lc40yEVEcosX4geRp0oNjHE8fhoNuL_ThVMwM,5267
149
- pyreduce_astro-0.6.0b1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
150
- pyreduce_astro-0.6.0b1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
151
- pyreduce_astro-0.6.0b1.dist-info/RECORD,,
148
+ pyreduce_astro-0.6.0b2.dist-info/METADATA,sha256=mmpbNGsvx1yf0JShQF3IWn4MoamokSrhrgLF-2SMhKQ,5267
149
+ pyreduce_astro-0.6.0b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
150
+ pyreduce_astro-0.6.0b2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
151
+ pyreduce_astro-0.6.0b2.dist-info/RECORD,,