legend-daq2lh5 1.2.0a1__tar.gz → 1.2.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {legend_daq2lh5-1.2.0a1/src/legend_daq2lh5.egg-info → legend_daq2lh5-1.2.1}/PKG-INFO +6 -2
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/README.md +4 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/pyproject.toml +1 -1
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/setup.cfg +1 -1
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/_version.py +2 -2
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/cli.py +1 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/data_decoder.py +6 -4
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/data_streamer.py +1 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/logging.py +1 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_flashcam.py +12 -12
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_packet.py +1 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/raw_buffer.py +1 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1/src/legend_daq2lh5.egg-info}/PKG-INFO +6 -2
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/requires.txt +1 -1
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/LICENSE +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/setup.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/__init__.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/__init__.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/buffer_processor.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/lh5_buffer_processor.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/build_raw.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/__init__.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_config_parser.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_event_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_header_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_streamer.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/__init__.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_config_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_event_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_status_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_streamer.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/__init__.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_base.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_digitizers.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_header.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_header_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_run_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_streamer.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/SOURCES.txt +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/dependency_links.txt +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/entry_points.txt +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/not-zip-safe +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/top_level.txt +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/buffer_processor_config.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/lh5_buffer_processor_config.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/raw_out_spec_no_proc.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_lh5_buffer_processor.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/compass/conftest.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_event_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_header_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_streamer.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/configs/fc-out-spec.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/configs/orca-out-spec-cli.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/configs/orca-out-spec.json +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/conftest.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/fc/conftest.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_config_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_event_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_status_decoder.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_streamer.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/orca/conftest.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/orca/test_or_run_decoder_for_run.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/orca/test_orca_fc.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/orca/test_orca_packet.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/test_build_raw.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/test_cli.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/test_daq_to_raw.py +0 -0
- {legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/test_raw_buffer.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: legend_daq2lh5
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.1
|
4
4
|
Summary: Convert digitizer data to LH5
|
5
5
|
Home-page: https://github.com/legend-exp/legend-daq2lh5
|
6
6
|
Author: Jason Detwiler
|
@@ -29,7 +29,7 @@ License-File: LICENSE
|
|
29
29
|
Requires-Dist: dspeed>=1.3.0a4
|
30
30
|
Requires-Dist: h5py>=3.2.0
|
31
31
|
Requires-Dist: hdf5plugin
|
32
|
-
Requires-Dist: legend-pydataobj>=1.
|
32
|
+
Requires-Dist: legend-pydataobj>=1.6
|
33
33
|
Requires-Dist: numpy>=1.21
|
34
34
|
Requires-Dist: pyfcutils
|
35
35
|
Requires-Dist: tqdm>=4.27
|
@@ -60,6 +60,7 @@ Requires-Dist: pytest-cov; extra == "test"
|
|
60
60
|
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/legend-daq2lh5?logo=github)
|
61
61
|
![License](https://img.shields.io/github/license/legend-exp/legend-daq2lh5)
|
62
62
|
[![Read the Docs](https://img.shields.io/readthedocs/legend-daq2lh5?logo=readthedocs)](https://legend-daq2lh5.readthedocs.io)
|
63
|
+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10721223.svg)](https://doi.org/10.5281/zenodo.10721223)
|
63
64
|
|
64
65
|
JSON-configurable conversion of digitized data into
|
65
66
|
[LEGEND HDF5](https://legend-exp.github.io/legend-data-format-specs/dev/hdf5/),
|
@@ -73,3 +74,6 @@ Currently supported DAQ data formats:
|
|
73
74
|
- FlashCam
|
74
75
|
- [Struck SIS3302](https://www.struck.de/sis3302.htm)
|
75
76
|
- [Struck SIS3316](https://www.struck.de/sis3316.html)
|
77
|
+
|
78
|
+
If you are using this software, consider
|
79
|
+
[citing](https://doi.org/10.5281/zenodo.10721223)!
|
@@ -10,6 +10,7 @@
|
|
10
10
|
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/legend-daq2lh5?logo=github)
|
11
11
|
![License](https://img.shields.io/github/license/legend-exp/legend-daq2lh5)
|
12
12
|
[![Read the Docs](https://img.shields.io/readthedocs/legend-daq2lh5?logo=readthedocs)](https://legend-daq2lh5.readthedocs.io)
|
13
|
+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10721223.svg)](https://doi.org/10.5281/zenodo.10721223)
|
13
14
|
|
14
15
|
JSON-configurable conversion of digitized data into
|
15
16
|
[LEGEND HDF5](https://legend-exp.github.io/legend-data-format-specs/dev/hdf5/),
|
@@ -23,3 +24,6 @@ Currently supported DAQ data formats:
|
|
23
24
|
- FlashCam
|
24
25
|
- [Struck SIS3302](https://www.struck.de/sis3302.htm)
|
25
26
|
- [Struck SIS3316](https://www.struck.de/sis3316.html)
|
27
|
+
|
28
|
+
If you are using this software, consider
|
29
|
+
[citing](https://doi.org/10.5281/zenodo.10721223)!
|
@@ -13,7 +13,7 @@ write_to = "src/daq2lh5/_version.py"
|
|
13
13
|
minversion = "6.0"
|
14
14
|
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
|
15
15
|
xfail_strict = true
|
16
|
-
filterwarnings = "error"
|
16
|
+
filterwarnings = ["error", 'ignore:\nPyarrow:DeprecationWarning']
|
17
17
|
log_cli_level = "info"
|
18
18
|
testpaths = "tests"
|
19
19
|
|
@@ -1,12 +1,14 @@
|
|
1
1
|
"""
|
2
2
|
Base classes for decoding data into raw LGDO Tables or files
|
3
3
|
"""
|
4
|
+
|
4
5
|
from __future__ import annotations
|
5
6
|
|
6
7
|
import lgdo
|
7
8
|
import numpy as np
|
8
9
|
from lgdo import LGDO
|
9
10
|
from lgdo.lh5 import LH5Store
|
11
|
+
from lgdo.lh5 import datatype as dtypeutils
|
10
12
|
|
11
13
|
|
12
14
|
class DataDecoder:
|
@@ -205,10 +207,10 @@ class DataDecoder:
|
|
205
207
|
continue
|
206
208
|
|
207
209
|
# Parse datatype for remaining lgdos
|
208
|
-
|
210
|
+
lgdotype = dtypeutils.datatype(datatype)
|
209
211
|
|
210
212
|
# ArrayOfEqualSizedArrays
|
211
|
-
if
|
213
|
+
if lgdotype is lgdo.ArrayOfEqualSizedArrays:
|
212
214
|
length = attrs.pop("length")
|
213
215
|
# only arrays of 1D arrays are supported at present
|
214
216
|
dims = (1, 1)
|
@@ -219,7 +221,7 @@ class DataDecoder:
|
|
219
221
|
continue
|
220
222
|
|
221
223
|
# VectorOfVectors
|
222
|
-
if
|
224
|
+
if lgdotype is lgdo.VectorOfVectors:
|
223
225
|
length_guess = size
|
224
226
|
if "length_guess" in attrs:
|
225
227
|
length_guess = attrs.pop("length_guess")
|
@@ -233,7 +235,7 @@ class DataDecoder:
|
|
233
235
|
raise RuntimeError(
|
234
236
|
type(self).__name__,
|
235
237
|
": do not know how to make a",
|
236
|
-
|
238
|
+
lgdotype.__name__,
|
237
239
|
"for",
|
238
240
|
field,
|
239
241
|
)
|
@@ -421,13 +421,13 @@ class ORFlashCamListenerStatusDecoder(OrcaDecoder):
|
|
421
421
|
(fd0 + i_card) * 5 + j
|
422
422
|
] = packet[i_cd + 14 + j]
|
423
423
|
for j in range(5):
|
424
|
-
tbl["card_temps"].flattened_data.nda[
|
425
|
-
|
426
|
-
|
424
|
+
tbl["card_temps"].flattened_data.nda[(fd0 + i_card) * 5 + j] = (
|
425
|
+
int_packet[i_cd + 19 + j]
|
426
|
+
)
|
427
427
|
for j in range(6):
|
428
|
-
tbl["card_voltages"].flattened_data.nda[
|
429
|
-
|
430
|
-
|
428
|
+
tbl["card_voltages"].flattened_data.nda[(fd0 + i_card) * 6 + j] = (
|
429
|
+
int_packet[i_cd + 24 + j]
|
430
|
+
)
|
431
431
|
tbl["card_main_current"].flattened_data.nda[fd0 + i_card] = int_packet[
|
432
432
|
i_cd + 30
|
433
433
|
]
|
@@ -435,14 +435,14 @@ class ORFlashCamListenerStatusDecoder(OrcaDecoder):
|
|
435
435
|
i_cd + 31
|
436
436
|
]
|
437
437
|
for j in range(2):
|
438
|
-
tbl["card_adc_temps"].flattened_data.nda[
|
439
|
-
|
440
|
-
|
438
|
+
tbl["card_adc_temps"].flattened_data.nda[(fd0 + i_card) * 2 + j] = (
|
439
|
+
int_packet[i_cd + 32 + j]
|
440
|
+
)
|
441
441
|
# packet[34] is empty / dummy
|
442
442
|
for j in range(4):
|
443
|
-
tbl["card_cti_links"].flattened_data.nda[
|
444
|
-
|
445
|
-
|
443
|
+
tbl["card_cti_links"].flattened_data.nda[(fd0 + i_card) * 4 + j] = (
|
444
|
+
packet[i_cd + 35 + j]
|
445
|
+
)
|
446
446
|
for j in range(256):
|
447
447
|
value = packet[i_cd + 39 + j] if j < n_link_states else 0
|
448
448
|
tbl["card_link_states"].flattened_data.nda[
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: legend_daq2lh5
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.1
|
4
4
|
Summary: Convert digitizer data to LH5
|
5
5
|
Home-page: https://github.com/legend-exp/legend-daq2lh5
|
6
6
|
Author: Jason Detwiler
|
@@ -29,7 +29,7 @@ License-File: LICENSE
|
|
29
29
|
Requires-Dist: dspeed>=1.3.0a4
|
30
30
|
Requires-Dist: h5py>=3.2.0
|
31
31
|
Requires-Dist: hdf5plugin
|
32
|
-
Requires-Dist: legend-pydataobj>=1.
|
32
|
+
Requires-Dist: legend-pydataobj>=1.6
|
33
33
|
Requires-Dist: numpy>=1.21
|
34
34
|
Requires-Dist: pyfcutils
|
35
35
|
Requires-Dist: tqdm>=4.27
|
@@ -60,6 +60,7 @@ Requires-Dist: pytest-cov; extra == "test"
|
|
60
60
|
![GitHub pull requests](https://img.shields.io/github/issues-pr/legend-exp/legend-daq2lh5?logo=github)
|
61
61
|
![License](https://img.shields.io/github/license/legend-exp/legend-daq2lh5)
|
62
62
|
[![Read the Docs](https://img.shields.io/readthedocs/legend-daq2lh5?logo=readthedocs)](https://legend-daq2lh5.readthedocs.io)
|
63
|
+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10721223.svg)](https://doi.org/10.5281/zenodo.10721223)
|
63
64
|
|
64
65
|
JSON-configurable conversion of digitized data into
|
65
66
|
[LEGEND HDF5](https://legend-exp.github.io/legend-data-format-specs/dev/hdf5/),
|
@@ -73,3 +74,6 @@ Currently supported DAQ data formats:
|
|
73
74
|
- FlashCam
|
74
75
|
- [Struck SIS3302](https://www.struck.de/sis3302.htm)
|
75
76
|
- [Struck SIS3316](https://www.struck.de/sis3316.html)
|
77
|
+
|
78
|
+
If you are using this software, consider
|
79
|
+
[citing](https://doi.org/10.5281/zenodo.10721223)!
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/buffer_processor.py
RENAMED
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/lh5_buffer_processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_config_parser.py
RENAMED
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_event_decoder.py
RENAMED
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_header_decoder.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_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/dependency_links.txt
RENAMED
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/entry_points.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_lh5_buffer_processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{legend_daq2lh5-1.2.0a1 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_header_decoder.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
|