shepherd-core 2024.4.2__py3-none-any.whl → 2024.5.1__py3-none-any.whl

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.
shepherd_core/__init__.py CHANGED
@@ -23,7 +23,7 @@ from .testbed_client.client import TestbedClient
23
23
  from .testbed_client.client import tb_client
24
24
  from .writer import Writer
25
25
 
26
- __version__ = "2024.4.2"
26
+ __version__ = "2024.5.1"
27
27
 
28
28
  __all__ = [
29
29
  "Reader",
@@ -71,6 +71,7 @@ class CalibrationPair(ShpModel):
71
71
  if isinstance(values_raw, np.ndarray):
72
72
  values_raw[values_raw < 0.0] = 0.0
73
73
  values_raw = np.around(values_raw)
74
+ # TODO: overflow should also be prevented (add bit-width) -> fail or warn at both?
74
75
  else:
75
76
  values_raw = round(max(values_raw, 0.0))
76
77
  return values_raw
@@ -60,7 +60,7 @@ class EmulationTask(ShpModel):
60
60
  # timestamp or unix epoch time, None = ASAP
61
61
  duration: Optional[timedelta] = None
62
62
  # ⤷ Duration of recording in seconds, None = till EOF
63
- abort_on_error: bool = False
63
+ abort_on_error: bool = False # TODO: remove, should not exist
64
64
 
65
65
  # emulation-specific
66
66
  use_cal_default: bool = False
@@ -17,7 +17,7 @@ try:
17
17
  except ImportError as e:
18
18
  ELF = None
19
19
  elf_error_text = (
20
- "Please install functionality with 'pip install shepherd_core[elf] -U' first, "
20
+ "Please install functionality with 'pip install shepherd-core[elf] -U' first, "
21
21
  f"underlying exception: {e.msg}"
22
22
  )
23
23
 
@@ -23,7 +23,7 @@ except ImportError as e:
23
23
  ELF = None
24
24
  ELFError = None
25
25
  elf_error_text = (
26
- "Please install functionality with 'pip install shepherd_core[elf] -U' first, "
26
+ "Please install functionality with 'pip install shepherd-core[elf] -U' first, "
27
27
  f"underlying exception: {e.msg}"
28
28
  )
29
29
 
shepherd_core/writer.py CHANGED
@@ -229,7 +229,7 @@ class Writer(Reader):
229
229
  """Initialize the structure of the HDF5 file.
230
230
 
231
231
  HDF5 is hierarchically structured and before writing data, we have to
232
- setup this structure, i.e. creating the right groups with corresponding
232
+ set up this structure, i.e. creating the right groups with corresponding
233
233
  data types. We will store 3 types of data in a database: The
234
234
  actual IV samples recorded either from the harvester (during recording)
235
235
  or the target (during emulation). Any log messages, that can be used to
@@ -367,7 +367,7 @@ class Writer(Reader):
367
367
  TODO: use data-model?
368
368
  :param data: from virtual harvester or converter / source.
369
369
  """
370
- self.h5file["data"].attrs["config"] = yaml.safe_dump(
370
+ self.h5file.attrs["config"] = yaml.safe_dump(
371
371
  data, default_flow_style=False, sort_keys=False
372
372
  )
373
373
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: shepherd_core
3
- Version: 2024.4.2
3
+ Version: 2024.5.1
4
4
  Summary: Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed
5
5
  Author-email: Ingmar Splitt <ingmar.splitt@tu-dresden.de>
6
6
  Maintainer-email: Ingmar Splitt <ingmar.splitt@tu-dresden.de>
@@ -1,15 +1,15 @@
1
- shepherd_core/__init__.py,sha256=TuaidDGnc0u0TfDIXiRUviqMXsRSL6ldy4AurQmr71U,1385
1
+ shepherd_core/__init__.py,sha256=4NA3rBcPFRofOC838u_oynZbUA60WoPANSpON--HiMM,1385
2
2
  shepherd_core/calibration_hw_def.py,sha256=m5HDxHJ_blnn-C0Og5v6by1ApJRDT7RhytFbL-P5730,2548
3
3
  shepherd_core/commons.py,sha256=vymKXWcy_1bz7ChzzEATUkJ4p3czCzjIdsSehVjJOY8,218
4
4
  shepherd_core/logger.py,sha256=4Q4hTI-nccOZ1_A68fo4UEctfu3pJx3IeHfa9VuDDEo,1804
5
5
  shepherd_core/reader.py,sha256=qyc0MBHa-wMGRDglEaMtyB6OxCiODnOMJsxJH8NCcAo,26245
6
- shepherd_core/writer.py,sha256=VeW7AJsMKhfF06QsOjQ7Ez0gLq0NrrHUj2zq9_FtX6Y,14482
6
+ shepherd_core/writer.py,sha256=xcLCw-YokKaN8TrkwD0IjRmn8xZU0Q8wwWp_1K8JFVY,14475
7
7
  shepherd_core/data_models/__init__.py,sha256=IVjKbT2Ilz5bev325EvAuuhd9LfQgQ1u7qKo6dhVA2k,1866
8
8
  shepherd_core/data_models/readme.md,sha256=1bdfEypY_0NMhXLxOPRnLAsFca0HuHdq7_01yEWxvUs,2470
9
9
  shepherd_core/data_models/virtual_source_doc.txt,sha256=KizMcfGKj7BnHIbaJHT7KeTF01SV__UXv01qV_DGHSs,6057
10
10
  shepherd_core/data_models/base/__init__.py,sha256=PSJ6acWViqBm0Eiom8DIgKfFVrp5lzYr8OsDvP79vwI,94
11
11
  shepherd_core/data_models/base/cal_measurement.py,sha256=Ie35wWfH4spjETQ6SKHlbY_Ie2Bkt0dIQAKAn4ELOTc,3354
12
- shepherd_core/data_models/base/calibration.py,sha256=P2fCFzyrrXobkYQkBzqplpIlg5cDXKv0iWWrnaroq_I,10320
12
+ shepherd_core/data_models/base/calibration.py,sha256=HPhDEaApOCKxfX2q9RD8YCvA3Gqls-2bHqvLLvOM7kY,10415
13
13
  shepherd_core/data_models/base/content.py,sha256=13j7GSgT73xn27jgDP508thUEJR4U-nCb5n7CJ50c9Y,2463
14
14
  shepherd_core/data_models/base/shepherd.py,sha256=DNrx59o1VBuy_liJuUzZRzmTTYB73D_pUWiNyMQyjYY,6112
15
15
  shepherd_core/data_models/base/timezone.py,sha256=2T6E46hJ1DAvmqKfu6uIgCK3RSoAKjGXRyzYNaqKyjY,665
@@ -29,7 +29,7 @@ shepherd_core/data_models/experiment/experiment.py,sha256=QX3-oeBe5dRx1a_RHF6kxj
29
29
  shepherd_core/data_models/experiment/observer_features.py,sha256=qxnb7anuQz9ZW5IUlPdUXYPIl5U7O9uXkJqZtMnAb0Y,5156
30
30
  shepherd_core/data_models/experiment/target_config.py,sha256=XIsjbbo7yn_A4q3GMxWbiNzEGA0Kk5gH7-XfQQ7Kg0E,3674
31
31
  shepherd_core/data_models/task/__init__.py,sha256=rZLbgqX-dTWY4026-bqW-IWVHbA6C_xP9y0aeRze8FY,3374
32
- shepherd_core/data_models/task/emulation.py,sha256=75X8xkHx27LrBMntw-TaNGHbAN31_o0eby9kAeBopV8,6342
32
+ shepherd_core/data_models/task/emulation.py,sha256=z3BEqERy2m3_rxqKo6w89sSnBQhFwHDEdCgwJh2XUOQ,6376
33
33
  shepherd_core/data_models/task/firmware_mod.py,sha256=Rw_TA1ykQ7abUd_U0snqZlpZyrS8Nx6f4BEax1Xnji0,2818
34
34
  shepherd_core/data_models/task/harvest.py,sha256=HHnqWwRsJupaZJxuohs7NrK6VaDyoRzGOaG2h9y3s1Y,3360
35
35
  shepherd_core/data_models/task/observer_tasks.py,sha256=XlH_-EGRrdodTn0c2pjGvpcauc0a9NOnLhysKw8iRwk,3511
@@ -53,8 +53,8 @@ shepherd_core/decoder_waveform/uart.py,sha256=sHsXHOsDU1j9zMSZO7CCMTMinT4U_S5Ngs
53
53
  shepherd_core/fw_tools/__init__.py,sha256=_RZpgHsNN1Zhd-x0-A9aJPI3pjULKhR9iuR9eKPa8zQ,2137
54
54
  shepherd_core/fw_tools/converter.py,sha256=3igRT33tghrBCao5njuPmePS-Y_lSa6EUHvwCakMo2s,3539
55
55
  shepherd_core/fw_tools/converter_elf.py,sha256=GQDVqIqMW4twNMvZIV3sowFMezhs2TN-IYREjRP7Xt4,1089
56
- shepherd_core/fw_tools/patcher.py,sha256=ODBADQeomah0NadIuGSAwMVlafOf_KAnz_IMvDgydVE,4108
57
- shepherd_core/fw_tools/validation.py,sha256=2AnBpl5MpW8C-uLlusNZWJRDHa7lG7sB2pB1GKhTMcY,4790
56
+ shepherd_core/fw_tools/patcher.py,sha256=D6MHaCvKRRVQYSZozODAp_l7UnqxVsvnulPzpkfXWW8,4108
57
+ shepherd_core/fw_tools/validation.py,sha256=gVyJrNZLSiX9T8vFxH2RfulefTZEvO9Z4t-KCKBxkNk,4790
58
58
  shepherd_core/inventory/__init__.py,sha256=nRO11HG4eJ_FaXebSkE0dd1H6qvjrX5n3OQHOzKXVvk,3841
59
59
  shepherd_core/inventory/python.py,sha256=OWNnyEt0IDPW9XGW-WloU0FExwgZzYNA05VpRj4cZGc,1250
60
60
  shepherd_core/inventory/system.py,sha256=hmUuaeg6_6Xsykp47YAtTeUbDa5B8sxV0EICQJG9rx4,2304
@@ -68,8 +68,8 @@ shepherd_core/vsource/__init__.py,sha256=dS33KYLq5GQ9_D8HfdP8iWSocWTghCi2ZZG2AJW
68
68
  shepherd_core/vsource/virtual_converter_model.py,sha256=ZSoWVLfRmFEjeCNoQCg3BctzhdfayINUBDU_AJK1CR0,10404
69
69
  shepherd_core/vsource/virtual_harvester_model.py,sha256=wCbFfsqDRC5Rfu8qANkmkP9XGJOPHJY9-iSnI850JI4,7817
70
70
  shepherd_core/vsource/virtual_source_model.py,sha256=fjN8myTY3I_LpikF_aGAcxes3RGu1GP23P7XKC_UIyA,2737
71
- shepherd_core-2024.4.2.dist-info/METADATA,sha256=bC_TD-hytcffYDetSqElbilSIM77vvX8f8TjhyzXaCQ,7651
72
- shepherd_core-2024.4.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
73
- shepherd_core-2024.4.2.dist-info/top_level.txt,sha256=wy-t7HRBrKARZxa-Y8_j8d49oVHnulh-95K9ikxVhew,14
74
- shepherd_core-2024.4.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
75
- shepherd_core-2024.4.2.dist-info/RECORD,,
71
+ shepherd_core-2024.5.1.dist-info/METADATA,sha256=b8rOT-zSwCa2jfHdDIj8VHx4_pHJ7Dq0NKXwP-77WWw,7651
72
+ shepherd_core-2024.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
73
+ shepherd_core-2024.5.1.dist-info/top_level.txt,sha256=wy-t7HRBrKARZxa-Y8_j8d49oVHnulh-95K9ikxVhew,14
74
+ shepherd_core-2024.5.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
75
+ shepherd_core-2024.5.1.dist-info/RECORD,,