labfreed 0.2.5a9__py3-none-any.whl → 0.2.5a10__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.

Potentially problematic release.


This version of labfreed might be problematic. Click here for more details.

labfreed/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
  Python implementation of LabFREED building blocks
3
3
  '''
4
4
 
5
- __version__ = "0.2.5a9"
5
+ __version__ = "0.2.5a10"
6
6
 
7
7
  from labfreed.pac_id import * # noqa: F403
8
8
  from labfreed.pac_cat import * # noqa: F403
@@ -51,6 +51,7 @@ class DataTable(BaseModel):
51
51
  if not len(item) == len(self._row_template):
52
52
  raise ValueError('row is not of same length as the row template.')
53
53
  self.data.append(item)
54
+
54
55
 
55
56
  def get_column(self, col:str|int) -> list:
56
57
  if isinstance(col, str):
@@ -60,9 +61,16 @@ class DataTable(BaseModel):
60
61
  col_data = [row[col_index] for row in self.data]
61
62
  return col_data
62
63
 
64
+
63
65
  def get_row(self, row_index:int) -> list:
64
66
  return self.data[row_index]
65
67
 
68
+
69
+ def get_row_as_dict(self, row_index:int) -> list:
70
+ d = {k:v for k, v in zip(self.col_names, self.data[row_index])}
71
+ return d
72
+
73
+
66
74
  def get_cell(self, row_index:int, col:str|int):
67
75
  if isinstance(col, str):
68
76
  col_index = self.col_names.index()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: labfreed
3
- Version: 0.2.5a9
3
+ Version: 0.2.5a10
4
4
  Summary: Python implementation of LabFREED building blocks
5
5
  Author-email: Reto Thürer <thuerer.r@buchi.com>
6
6
  Requires-Python: >=3.11
@@ -1,4 +1,4 @@
1
- labfreed/__init__.py,sha256=W5Cuc_Sp9nhGCaHH0DoZcL3DBukyFGybdKposDlqBPo,338
1
+ labfreed/__init__.py,sha256=HSaDUrgXPT3MmbOTW9Rxx_bgZB9Lab8VJAsB6oe4ij8,339
2
2
  labfreed/labfreed_infrastructure.py,sha256=yxZkI0mPrHyeZGWKtgFIV9R54edSUcww-w1ExHt8F-o,9990
3
3
  labfreed/pac_cat/__init__.py,sha256=S4T-QgzcEDjup44WvHCY3_K30B6_e8ducR--DxBb_DM,554
4
4
  labfreed/pac_cat/category_base.py,sha256=lFQNiTUukyhWdaSCAI7CZxLtj6kNtnBCE4UsePwsGqE,1801
@@ -23,7 +23,7 @@ labfreed/trex/trex.py,sha256=WDoPvuhiilLtRSIkntCmDGkFBnD6oRZg0E6hhoV-I2g,2400
23
23
  labfreed/trex/trex_base_models.py,sha256=3twGEZLYEznUyJ_ctcTcPYsy1qOciMRqLcslE9dxEqw,7567
24
24
  labfreed/trex/value_segments.py,sha256=mmjyEKWLlDIoiFlk2wKELOfWn2_0xwreNEBTs8RgjOY,3774
25
25
  labfreed/trex/python_convenience/__init__.py,sha256=dyAQG7t-uYN6VfGXbWIq2bHxGcGI63l7FS2-VPYs2RQ,137
26
- labfreed/trex/python_convenience/data_table.py,sha256=O5J8Mxt_idztsqg6fMLZ3tCtBcezoZI5P0rTpNrftsA,2741
26
+ labfreed/trex/python_convenience/data_table.py,sha256=7iO5ZmIGGAKHR4pkShEG0tH1lj95-D52GhW2bQ1fXx4,2920
27
27
  labfreed/trex/python_convenience/pyTREX.py,sha256=4x7QzgFFVRyNnrJa9pJTOQGY8OjoJwiiwGUbnuoM-3g,10118
28
28
  labfreed/trex/python_convenience/quantity.py,sha256=NlbKsXmr-nvN42gLw1gGn7GVRTdaIuYZky7SLekdhI8,1729
29
29
  labfreed/utilities/base36.py,sha256=_yX8aQ1OwrK5tnJU1NUEzQSFGr9xAVnNvPObpNzCPYs,2895
@@ -38,7 +38,7 @@ labfreed/well_known_keys/labfreed/well_known_keys.py,sha256=nqk66kHdSwJTJfMKlP-x
38
38
  labfreed/well_known_keys/unece/UneceUnits.json,sha256=kwfQSp_nTuWbADfBBgqTWrvPl6XtM5SedEVLbMJrM7M,898953
39
39
  labfreed/well_known_keys/unece/__init__.py,sha256=MSP9lmjg9_D9iqG9Yq2_ajYfQSNS9wIT7FXA1c--59M,122
40
40
  labfreed/well_known_keys/unece/unece_units.py,sha256=gNDQk6KGl-nGMf9Ycq_fQ8P2xxKITgLkcQWPd4H49gI,1630
41
- labfreed-0.2.5a9.dist-info/licenses/LICENSE,sha256=gHFOv9FRKHxO8cInP3YXyPoJnuNeqrvcHjaE_wPSsQ8,1100
42
- labfreed-0.2.5a9.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
43
- labfreed-0.2.5a9.dist-info/METADATA,sha256=TR6dQNdmS8x064xHsniIMdzPc7vaT7t72p5P9JTNNIc,18092
44
- labfreed-0.2.5a9.dist-info/RECORD,,
41
+ labfreed-0.2.5a10.dist-info/licenses/LICENSE,sha256=gHFOv9FRKHxO8cInP3YXyPoJnuNeqrvcHjaE_wPSsQ8,1100
42
+ labfreed-0.2.5a10.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
43
+ labfreed-0.2.5a10.dist-info/METADATA,sha256=sbLQi9aWGAeILbLHWtcoxr8Ai1nlihxxT8vjSgWRapA,18093
44
+ labfreed-0.2.5a10.dist-info/RECORD,,