labfreed 0.2.5a9__tar.gz → 0.2.5a11__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.
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/PKG-INFO +1 -1
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/__init__.py +1 -1
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_cat/__init__.py +1 -1
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/python_convenience/data_table.py +8 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/python_convenience/pyTREX.py +2 -1
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/trex_base_models.py +1 -2
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/value_segments.py +0 -2
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/.github/workflows/pypi-publish.yml +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/.github/workflows/run-tests.yml +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/CHANGELOG.md +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/LICENSE +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/README.md +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/labfreed_infrastructure.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_cat/category_base.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_cat/pac_cat.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_cat/predefined_categories.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/extension.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/id_segment.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/pac_id.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/url_parser.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id/url_serializer.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id_resolver/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id_resolver/cit_v1.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id_resolver/cit_v2.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id_resolver/resolver.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/pac_id_resolver/services.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/qr/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/qr/generate_qr.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/python_convenience/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/python_convenience/quantity.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/table_segment.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/trex/trex.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/utilities/base36.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_extensions/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_extensions/default_extension_interpreters.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_extensions/display_name_extension.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_extensions/trex_extension.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/gs1/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/gs1/gs1.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/gs1/gs1_ai_enum_sorted.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/labfreed/well_known_keys.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/unece/UneceUnits.json +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/unece/__init__.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_keys/unece/unece_units.py +0 -0
- {labfreed-0.2.5a9 → labfreed-0.2.5a11}/pyproject.toml +0 -0
|
@@ -2,7 +2,7 @@ from .pac_cat import PAC_CAT
|
|
|
2
2
|
from .category_base import Category
|
|
3
3
|
from .predefined_categories import (
|
|
4
4
|
Material_Device, Material_Substance, Material_Consumable, Material_Misc, Data_Method, Data_Result, Data_Progress,
|
|
5
|
-
Data_Calibration, Data_Abstract, category_key_to_class_map
|
|
5
|
+
Data_Calibration, Data_Abstract, category_key_to_class_map # noqa: F401
|
|
6
6
|
)
|
|
7
7
|
|
|
8
8
|
__all__ = [
|
|
@@ -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()
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
from datetime import date, datetime, time
|
|
3
3
|
import logging
|
|
4
4
|
import re
|
|
5
|
+
from typing import Self
|
|
5
6
|
|
|
6
7
|
from pydantic import RootModel
|
|
7
8
|
from labfreed.well_known_keys.unece.unece_units import unece_unit
|
|
@@ -24,7 +25,7 @@ class pyTREX(RootModel[dict[str, Quantity | datetime | time | date | bool | str
|
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
@classmethod
|
|
27
|
-
def from_trex(cls, trex:TREX) ->
|
|
28
|
+
def from_trex(cls, trex:TREX) -> Self:
|
|
28
29
|
'''Creates a pyTREX from a TREX'''
|
|
29
30
|
return {seg.key: _trex_segment_to_python_type(seg) for seg in trex.segments}
|
|
30
31
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
from abc import ABC
|
|
2
|
-
import logging
|
|
3
2
|
import re
|
|
4
3
|
from typing import Literal
|
|
5
4
|
from pydantic import Field, model_validator
|
|
6
|
-
from labfreed.utilities.base36 import base36
|
|
7
5
|
from labfreed.well_known_keys.unece.unece_units import unece_unit_codes
|
|
8
6
|
from labfreed.labfreed_infrastructure import ValidationMsgLevel
|
|
9
7
|
from labfreed.trex.trex_base_models import AlphanumericValue, BinaryValue, BoolValue, DateValue, ErrorValue, NumericValue, TREX_Segment, TextValue, Value
|
|
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
|
|
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
|
{labfreed-0.2.5a9 → labfreed-0.2.5a11}/labfreed/well_known_extensions/display_name_extension.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
|