This repository was archived by the owner on Jul 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11"""USSA1976."""
2- __version__ = "0.1.0"
3-
2+ from ._version import _version as __version__
43from .core import compute
54
65__all__ = ["compute" , "__version__" ]
Original file line number Diff line number Diff line change 1+ from importlib import metadata
2+
3+ _version = metadata .version ("ussa1976" )
Original file line number Diff line number Diff line change 2424from scipy .integrate import cumulative_trapezoid
2525from scipy .interpolate import interp1d
2626
27- from . import __version__
27+ from ._version import _version
2828from .constants import A
2929from .constants import ALPHA
3030from .constants import AR_7
@@ -444,9 +444,9 @@ def init_data_set(z: npt.NDArray[np.float64]) -> xr.Dataset: # type: ignore
444444 "title" : "U.S. Standard Atmosphere 1976" ,
445445 "history" : (
446446 f"{ datetime .datetime .utcnow ().strftime ('%Y-%m-%d %H:%M:%S' )} "
447- f" - data set creation - ussa1976, version { __version__ } "
447+ f" - data set creation - ussa1976, version { _version } "
448448 ),
449- "source" : f"ussa1976, version { __version__ } " ,
449+ "source" : f"ussa1976, version { _version } " ,
450450 "references" : (
451451 "U.S. Standard Atmosphere, 1976, NASA-TM-X-74335" "NOAA-S/T-76-1562"
452452 ),
You can’t perform that action at this time.
0 commit comments