legend-daq2lh5 1.2.0a2__tar.gz → 1.2.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. {legend_daq2lh5-1.2.0a2/src/legend_daq2lh5.egg-info → legend_daq2lh5-1.2.1}/PKG-INFO +6 -2
  2. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/README.md +4 -0
  3. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/setup.cfg +1 -1
  4. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/_version.py +2 -2
  5. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/cli.py +1 -0
  6. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/data_decoder.py +6 -4
  7. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/data_streamer.py +1 -0
  8. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/logging.py +1 -0
  9. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_flashcam.py +12 -12
  10. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_packet.py +1 -0
  11. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/raw_buffer.py +1 -0
  12. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1/src/legend_daq2lh5.egg-info}/PKG-INFO +6 -2
  13. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/requires.txt +1 -1
  14. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/LICENSE +0 -0
  15. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/pyproject.toml +0 -0
  16. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/setup.py +0 -0
  17. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/__init__.py +0 -0
  18. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/__init__.py +0 -0
  19. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/buffer_processor.py +0 -0
  20. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/buffer_processor/lh5_buffer_processor.py +0 -0
  21. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/build_raw.py +0 -0
  22. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/__init__.py +0 -0
  23. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_config_parser.py +0 -0
  24. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_event_decoder.py +0 -0
  25. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_header_decoder.py +0 -0
  26. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/compass/compass_streamer.py +0 -0
  27. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/__init__.py +0 -0
  28. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_config_decoder.py +0 -0
  29. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_event_decoder.py +0 -0
  30. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_status_decoder.py +0 -0
  31. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/fc/fc_streamer.py +0 -0
  32. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/__init__.py +0 -0
  33. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_base.py +0 -0
  34. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_digitizers.py +0 -0
  35. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_header.py +0 -0
  36. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_header_decoder.py +0 -0
  37. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_run_decoder.py +0 -0
  38. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/daq2lh5/orca/orca_streamer.py +0 -0
  39. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/SOURCES.txt +0 -0
  40. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/dependency_links.txt +0 -0
  41. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/entry_points.txt +0 -0
  42. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/not-zip-safe +0 -0
  43. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/src/legend_daq2lh5.egg-info/top_level.txt +0 -0
  44. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor.py +0 -0
  45. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/buffer_processor_config.json +0 -0
  46. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/lh5_buffer_processor_config.json +0 -0
  47. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_buffer_processor_configs/raw_out_spec_no_proc.json +0 -0
  48. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/buffer_processor/test_lh5_buffer_processor.py +0 -0
  49. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/compass/conftest.py +0 -0
  50. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_event_decoder.py +0 -0
  51. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_header_decoder.py +0 -0
  52. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/compass/test_compass_streamer.py +0 -0
  53. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/configs/fc-out-spec.json +0 -0
  54. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/configs/orca-out-spec-cli.json +0 -0
  55. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/configs/orca-out-spec.json +0 -0
  56. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/conftest.py +0 -0
  57. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/fc/conftest.py +0 -0
  58. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_config_decoder.py +0 -0
  59. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_event_decoder.py +0 -0
  60. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_status_decoder.py +0 -0
  61. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/fc/test_fc_streamer.py +0 -0
  62. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/orca/conftest.py +0 -0
  63. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/orca/test_or_run_decoder_for_run.py +0 -0
  64. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/orca/test_orca_fc.py +0 -0
  65. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/orca/test_orca_packet.py +0 -0
  66. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/test_build_raw.py +0 -0
  67. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/test_cli.py +0 -0
  68. {legend_daq2lh5-1.2.0a2 → legend_daq2lh5-1.2.1}/tests/test_daq_to_raw.py +0 -0
  69. {legend_daq2lh5-1.2.0a2 → 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.0a2
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.5.0a1
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)!
@@ -34,7 +34,7 @@ install_requires =
34
34
  dspeed>=1.3.0a4
35
35
  h5py>=3.2.0
36
36
  hdf5plugin
37
- legend-pydataobj>=1.5.0a1
37
+ legend-pydataobj>=1.6
38
38
  numpy>=1.21
39
39
  pyfcutils
40
40
  tqdm>=4.27
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.2.0a2'
16
- __version_tuple__ = version_tuple = (1, 2, 0)
15
+ __version__ = version = '1.2.1'
16
+ __version_tuple__ = version_tuple = (1, 2, 1)
@@ -1,4 +1,5 @@
1
1
  """legend-daq2lh5's command line interface utilities."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
5
  import argparse
@@ -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
- datatype, shape, elements = lgdo.lh5.utils.parse_datatype(datatype)
210
+ lgdotype = dtypeutils.datatype(datatype)
209
211
 
210
212
  # ArrayOfEqualSizedArrays
211
- if datatype == "array_of_equalsized_arrays":
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 elements.startswith("array"):
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
- datatype,
238
+ lgdotype.__name__,
237
239
  "for",
238
240
  field,
239
241
  )
@@ -1,6 +1,7 @@
1
1
  """
2
2
  Base classes for streaming data.
3
3
  """
4
+
4
5
  from __future__ import annotations
5
6
 
6
7
  import fnmatch
@@ -1,4 +1,5 @@
1
1
  """This module implements some helpers for setting up logging."""
2
+
2
3
  import logging
3
4
 
4
5
  import colorlog
@@ -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
- (fd0 + i_card) * 5 + j
426
- ] = int_packet[i_cd + 19 + j]
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
- (fd0 + i_card) * 6 + j
430
- ] = int_packet[i_cd + 24 + j]
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
- (fd0 + i_card) * 2 + j
440
- ] = int_packet[i_cd + 32 + j]
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
- (fd0 + i_card) * 4 + j
445
- ] = packet[i_cd + 35 + j]
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[
@@ -4,6 +4,7 @@ Provides convenience functions for working with ORCA packets.
4
4
  An ORCA packet is represented by a one-dimensional :class:`numpy.ndarray` of
5
5
  type :class:`numpy.uint32`.
6
6
  """
7
+
7
8
  from __future__ import annotations
8
9
 
9
10
  import logging
@@ -62,6 +62,7 @@ keys.
62
62
  }
63
63
  }
64
64
  """
65
+
65
66
  from __future__ import annotations
66
67
 
67
68
  import os
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: legend_daq2lh5
3
- Version: 1.2.0a2
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.5.0a1
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)!
@@ -1,7 +1,7 @@
1
1
  dspeed>=1.3.0a4
2
2
  h5py>=3.2.0
3
3
  hdf5plugin
4
- legend-pydataobj>=1.5.0a1
4
+ legend-pydataobj>=1.6
5
5
  numpy>=1.21
6
6
  pyfcutils
7
7
  tqdm>=4.27
File without changes