legend-pydataobj 1.5.0a2__tar.gz → 1.5.0a3__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.5.0a2/src/legend_pydataobj.egg-info → legend_pydataobj-1.5.0a3}/PKG-INFO +1 -1
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3/src/legend_pydataobj.egg-info}/PKG-INFO +1 -1
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/_version.py +1 -1
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lh5/store.py +16 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/lh5/test_lh5_store.py +0 -27
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/LICENSE +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/README.md +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/pyproject.toml +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/setup.cfg +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/setup.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/SOURCES.txt +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/dependency_links.txt +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/entry_points.txt +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/not-zip-safe +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/requires.txt +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/top_level.txt +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/__init__.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/cli.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/__init__.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/base.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/generic.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/radware.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/compression/varlen.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lgdo_utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lh5/__init__.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lh5/iterator.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lh5/utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/lh5_store.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/logging.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/__init__.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/array.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/arrayofequalsizedarrays.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/encoded.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/fixedsizearray.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/lgdo.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/scalar.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/struct.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/table.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/vectorofvectors.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/waveformtable.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/units.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/conftest.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/sigcompress/LDQTA_r117_20200110T105115Z_cal_geds_raw-0.dat +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/sigcompress/special-wf-clipped.dat +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/test_compression.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/test_radware_sigcompress.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/test_str2wfcodec.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/test_uleb128_zigzag_diff.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/conftest.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/lh5/test_lh5_iterator.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/lh5/test_lh5_utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/test_cli.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/test_lgdo_utils.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_array.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_arrayofequalsizedarrays.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_encoded.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_fixedsizearray.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_representations.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_scalar.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_struct.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_table.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_table_eval.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_vectorofvectors.py +0 -0
- {legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/types/test_waveformtable.py +0 -0
@@ -12,6 +12,7 @@ import sys
|
|
12
12
|
from bisect import bisect_left
|
13
13
|
from collections import defaultdict
|
14
14
|
from typing import Any, Union
|
15
|
+
from warnings import warn
|
15
16
|
|
16
17
|
import h5py
|
17
18
|
import numba as nb
|
@@ -1467,6 +1468,14 @@ def load_nda(
|
|
1467
1468
|
Each entry contains the data for the specified parameter concatenated
|
1468
1469
|
over all files in `f_list`.
|
1469
1470
|
"""
|
1471
|
+
warn(
|
1472
|
+
"load_nda() is deprecated. "
|
1473
|
+
"Please replace it with LH5Store.read(...).view_as('np'). "
|
1474
|
+
"load_nda() will be removed in a future release.",
|
1475
|
+
DeprecationWarning,
|
1476
|
+
stacklevel=2,
|
1477
|
+
)
|
1478
|
+
|
1470
1479
|
if isinstance(f_list, str):
|
1471
1480
|
f_list = [f_list]
|
1472
1481
|
if idx_list is not None:
|
@@ -1521,6 +1530,13 @@ def load_dfs(
|
|
1521
1530
|
all data for the associated parameters concatenated over all files in
|
1522
1531
|
`f_list`.
|
1523
1532
|
"""
|
1533
|
+
warn(
|
1534
|
+
"load_dfs() is deprecated. "
|
1535
|
+
"Please replace it with LH5Store.read(...).view_as('pd'). "
|
1536
|
+
"load_dfs() will be removed in a future release.",
|
1537
|
+
DeprecationWarning,
|
1538
|
+
stacklevel=2,
|
1539
|
+
)
|
1524
1540
|
return pd.DataFrame(
|
1525
1541
|
load_nda(f_list, par_list, lh5_group=lh5_group, idx_list=idx_list)
|
1526
1542
|
)
|
@@ -3,7 +3,6 @@ import os
|
|
3
3
|
|
4
4
|
import h5py
|
5
5
|
import numpy as np
|
6
|
-
import pandas as pd
|
7
6
|
import pytest
|
8
7
|
|
9
8
|
import lgdo
|
@@ -69,21 +68,6 @@ def test_show(lgnd_file):
|
|
69
68
|
lh5.show(lgnd_file, "geds/raw")
|
70
69
|
|
71
70
|
|
72
|
-
def test_load_nda(lgnd_file):
|
73
|
-
nda = lh5.load_nda(
|
74
|
-
[lgnd_file, lgnd_file],
|
75
|
-
["baseline", "waveform/values"],
|
76
|
-
lh5_group="/geds/raw",
|
77
|
-
idx_list=[[1, 3, 5], [2, 6, 7]],
|
78
|
-
)
|
79
|
-
|
80
|
-
assert isinstance(nda, dict)
|
81
|
-
assert isinstance(nda["baseline"], np.ndarray)
|
82
|
-
assert nda["baseline"].shape == (6,)
|
83
|
-
assert isinstance(nda["waveform/values"], np.ndarray)
|
84
|
-
assert nda["waveform/values"].shape == (6, 5592)
|
85
|
-
|
86
|
-
|
87
71
|
@pytest.fixture(scope="module")
|
88
72
|
def lh5_file(tmptestdir):
|
89
73
|
store = lh5.LH5Store()
|
@@ -906,14 +890,3 @@ def test_write_object_append_column(tmptestdir):
|
|
906
890
|
assert isinstance(tb_dat, types.Table)
|
907
891
|
assert np.array_equal(tb_dat["dset1"].nda, np.zeros(10))
|
908
892
|
assert np.array_equal(tb_dat["dset2"].nda, np.ones(10))
|
909
|
-
|
910
|
-
|
911
|
-
def test_load_dfs(lgnd_file):
|
912
|
-
dfs = lh5.load_dfs(
|
913
|
-
[lgnd_file, lgnd_file],
|
914
|
-
["baseline", "waveform/t0"],
|
915
|
-
lh5_group="/geds/raw",
|
916
|
-
idx_list=[[1, 3, 5], [2, 6, 7]],
|
917
|
-
)
|
918
|
-
|
919
|
-
assert isinstance(dfs, pd.DataFrame)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/entry_points.txt
RENAMED
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/not-zip-safe
RENAMED
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/legend_pydataobj.egg-info/requires.txt
RENAMED
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/src/lgdo/types/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/tests/compression/test_radware_sigcompress.py
RENAMED
File without changes
|
File without changes
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/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
|
{legend_pydataobj-1.5.0a2 → legend_pydataobj-1.5.0a3}/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
|