legend-pydataobj 1.8.0__tar.gz → 1.8.1__tar.gz
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.
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/PKG-INFO +2 -2
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/pyproject.toml +1 -1
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/PKG-INFO +2 -2
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/requires.txt +1 -1
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/_version.py +2 -2
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/core.py +2 -2
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_core.py +9 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/LICENSE +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/README.md +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/setup.cfg +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/SOURCES.txt +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/dependency_links.txt +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/entry_points.txt +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/not-zip-safe +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/top_level.txt +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/cli.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/base.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/generic.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/radware.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/compression/varlen.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lgdo_utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/array.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/composite.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/encoded.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/ndarray.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/scalar.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/vector_of_vectors.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/array.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/composite.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/scalar.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/vector_of_vectors.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/datatype.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/exceptions.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/iterator.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/store.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/tools.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5_store.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/logging.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/__init__.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/array.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/arrayofequalsizedarrays.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/encoded.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/fixedsizearray.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/lgdo.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/scalar.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/struct.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/table.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/vectorofvectors.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/vovutils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/types/waveformtable.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/units.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/conftest.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/sigcompress/LDQTA_r117_20200110T105115Z_cal_geds_raw-0.dat +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/sigcompress/special-wf-clipped.dat +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_compression.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_radware_sigcompress.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_str2wfcodec.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_uleb128_zigzag_diff.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/conftest.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/conftest.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_datatype.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_iterator.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_store.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_tools.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/lh5/test_lh5_write.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/test_cli.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/test_lgdo_utils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_array.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_arrayofequalsizedarrays.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_encoded.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_fixedsizearray.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_representations.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_scalar.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_struct.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_table.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_table_eval.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_vectorofvectors.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_vovutils.py +0 -0
- {legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_waveformtable.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: legend_pydataobj
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.1
|
4
4
|
Summary: LEGEND Python Data Objects
|
5
5
|
Author: The LEGEND Collaboration
|
6
6
|
Maintainer: The LEGEND Collaboration
|
@@ -707,7 +707,7 @@ Requires-Dist: numexpr
|
|
707
707
|
Requires-Dist: numpy>=1.21
|
708
708
|
Requires-Dist: pandas>=1.4.4
|
709
709
|
Requires-Dist: parse
|
710
|
-
Requires-Dist: pint
|
710
|
+
Requires-Dist: pint>0.24
|
711
711
|
Requires-Dist: pint-pandas
|
712
712
|
Provides-Extra: all
|
713
713
|
Requires-Dist: legend-pydataobj[docs,test]; extra == "all"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: legend_pydataobj
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.1
|
4
4
|
Summary: LEGEND Python Data Objects
|
5
5
|
Author: The LEGEND Collaboration
|
6
6
|
Maintainer: The LEGEND Collaboration
|
@@ -707,7 +707,7 @@ Requires-Dist: numexpr
|
|
707
707
|
Requires-Dist: numpy>=1.21
|
708
708
|
Requires-Dist: pandas>=1.4.4
|
709
709
|
Requires-Dist: parse
|
710
|
-
Requires-Dist: pint
|
710
|
+
Requires-Dist: pint>0.24
|
711
711
|
Requires-Dist: pint-pandas
|
712
712
|
Provides-Extra: all
|
713
713
|
Requires-Dist: legend-pydataobj[docs,test]; extra == "all"
|
@@ -115,9 +115,9 @@ def read(
|
|
115
115
|
else:
|
116
116
|
lh5_obj = []
|
117
117
|
for h5f in lh5_file:
|
118
|
-
if isinstance(
|
118
|
+
if isinstance(h5f, str):
|
119
119
|
h5f = h5py.File(h5f, mode="r") # noqa: PLW2901
|
120
|
-
lh5_obj += h5f[name]
|
120
|
+
lh5_obj += [h5f[name]]
|
121
121
|
|
122
122
|
obj, n_rows_read = _serializers._h5_read_lgdo(
|
123
123
|
lh5_obj,
|
@@ -1,5 +1,7 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
+
import numpy as np
|
4
|
+
|
3
5
|
import lgdo
|
4
6
|
from lgdo import lh5
|
5
7
|
|
@@ -35,3 +37,10 @@ def test_read_as(lh5_file):
|
|
35
37
|
"/data/struct/table", lh5_file, "pd", start_row=1, with_units=True
|
36
38
|
)
|
37
39
|
assert obj1.equals(obj2)
|
40
|
+
|
41
|
+
|
42
|
+
def test_read_multiple_files(lh5_file):
|
43
|
+
lh5_obj = lh5.read("/data/struct/array", [lh5_file, lh5_file, lh5_file])
|
44
|
+
assert isinstance(lh5_obj, lgdo.Array)
|
45
|
+
assert len(lh5_obj) == 9
|
46
|
+
assert (lh5_obj.nda == np.array([2, 3, 4] * 3)).all()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/dependency_links.txt
RENAMED
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/entry_points.txt
RENAMED
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/not-zip-safe
RENAMED
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/legend_pydataobj.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/__init__.py
RENAMED
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/read/composite.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/__init__.py
RENAMED
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/src/lgdo/lh5/_serializers/write/composite.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_radware_sigcompress.py
RENAMED
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/compression/test_uleb128_zigzag_diff.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.8.0 → legend_pydataobj-1.8.1}/tests/types/test_arrayofequalsizedarrays.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|