sapiopycommons 2024.9.12a329__py3-none-any.whl → 2024.9.17a330__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 sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/eln/experiment_handler.py +11 -4
- {sapiopycommons-2024.9.12a329.dist-info → sapiopycommons-2024.9.17a330.dist-info}/METADATA +1 -1
- {sapiopycommons-2024.9.12a329.dist-info → sapiopycommons-2024.9.17a330.dist-info}/RECORD +5 -5
- {sapiopycommons-2024.9.12a329.dist-info → sapiopycommons-2024.9.17a330.dist-info}/WHEEL +0 -0
- {sapiopycommons-2024.9.12a329.dist-info → sapiopycommons-2024.9.17a330.dist-info}/licenses/LICENSE +0 -0
|
@@ -598,6 +598,8 @@ class ExperimentHandler:
|
|
|
598
598
|
The records may be provided as either DataRecords, PyRecordModels, or WrappedRecordModels.
|
|
599
599
|
"""
|
|
600
600
|
step = self.__to_eln_step(step)
|
|
601
|
+
if not records:
|
|
602
|
+
return
|
|
601
603
|
dt: str = AliasUtil.to_singular_data_type_name(records)
|
|
602
604
|
if dt != step.get_data_type_names()[0]:
|
|
603
605
|
raise SapioException(f"Cannot add {dt} records to entry {step.get_name()} of type "
|
|
@@ -620,6 +622,8 @@ class ExperimentHandler:
|
|
|
620
622
|
The records may be provided as either DataRecords, PyRecordModels, or WrappedRecordModels.
|
|
621
623
|
"""
|
|
622
624
|
step = self.__to_eln_step(step)
|
|
625
|
+
if not records:
|
|
626
|
+
return
|
|
623
627
|
dt: str = AliasUtil.to_singular_data_type_name(records)
|
|
624
628
|
if dt != step.get_data_type_names()[0]:
|
|
625
629
|
raise SapioException(f"Cannot remove {dt} records from entry {step.get_name()} of type "
|
|
@@ -647,10 +651,11 @@ class ExperimentHandler:
|
|
|
647
651
|
The records may be provided as either DataRecords, PyRecordModels, or WrappedRecordModels.
|
|
648
652
|
"""
|
|
649
653
|
step = self.__to_eln_step(step)
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
+
if records:
|
|
655
|
+
dt: str = AliasUtil.to_singular_data_type_name(records)
|
|
656
|
+
if dt != step.get_data_type_names()[0]:
|
|
657
|
+
raise SapioException(f"Cannot set {dt} records for entry {step.get_name()} of type "
|
|
658
|
+
f"{step.get_data_type_names()[0]}.")
|
|
654
659
|
step.set_records(AliasUtil.to_data_records(records))
|
|
655
660
|
|
|
656
661
|
# FR-46496 - Provide alias of set_step_records for use with form entries.
|
|
@@ -738,6 +743,8 @@ class ExperimentHandler:
|
|
|
738
743
|
dt: str = step.get_data_type_names()[0]
|
|
739
744
|
if not ElnBaseDataType.is_eln_type(dt):
|
|
740
745
|
raise SapioException("The provided step is not an ELN data type entry.")
|
|
746
|
+
if not records:
|
|
747
|
+
return
|
|
741
748
|
record_dt: str = AliasUtil.to_singular_data_type_name(records)
|
|
742
749
|
if record_dt != dt:
|
|
743
750
|
raise SapioException(f"Cannot remove {dt} records from entry {step.get_name()} of type "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: sapiopycommons
|
|
3
|
-
Version: 2024.9.
|
|
3
|
+
Version: 2024.9.17a330
|
|
4
4
|
Summary: Official Sapio Python API Utilities Package
|
|
5
5
|
Project-URL: Homepage, https://github.com/sapiosciences
|
|
6
6
|
Author-email: Jonathan Steck <jsteck@sapiosciences.com>, Yechen Qiao <yqiao@sapiosciences.com>
|
|
@@ -11,7 +11,7 @@ sapiopycommons/customreport/term_builder.py,sha256=oVsr7iFPnug2TrZUCcAMhyps-b62k
|
|
|
11
11
|
sapiopycommons/datatype/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
sapiopycommons/datatype/attachment_util.py,sha256=_l2swuP8noIGAl4bwzBUEhr6YlN_OVZl3-gi1XqFHYA,3364
|
|
13
13
|
sapiopycommons/eln/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
sapiopycommons/eln/experiment_handler.py,sha256=
|
|
14
|
+
sapiopycommons/eln/experiment_handler.py,sha256=PdphawD0ZoSljxJpo3PjDQ1mA8FtZSUts57m_zFKkw4,66848
|
|
15
15
|
sapiopycommons/eln/experiment_report_util.py,sha256=B55hXbTGndCEI19LiqhjvO46_chujZUK0qDTWHjzfcU,6398
|
|
16
16
|
sapiopycommons/eln/plate_designer.py,sha256=FYJfhhNq8hdfuXgDYOYHy6g0m2zNwQXZWF_MTPzElDg,7184
|
|
17
17
|
sapiopycommons/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -44,7 +44,7 @@ sapiopycommons/rules/on_save_rule_handler.py,sha256=Rkqvph20RbNq6m-RF4fbvCP-YfD2
|
|
|
44
44
|
sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
sapiopycommons/webhook/webhook_handlers.py,sha256=jwc4xu-wwl8haS5k1dENZ1UIYK9GQk74TAo3CGxMW9U,16583
|
|
46
46
|
sapiopycommons/webhook/webservice_handlers.py,sha256=1J56zFI0pWl5MHoNTznvcZumITXgAHJMluj8-2BqYEw,3315
|
|
47
|
-
sapiopycommons-2024.9.
|
|
48
|
-
sapiopycommons-2024.9.
|
|
49
|
-
sapiopycommons-2024.9.
|
|
50
|
-
sapiopycommons-2024.9.
|
|
47
|
+
sapiopycommons-2024.9.17a330.dist-info/METADATA,sha256=KdP6lLC29Nct3jJQtquEtDofoBGzLRZynxM4Y93DJ4o,3176
|
|
48
|
+
sapiopycommons-2024.9.17a330.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
49
|
+
sapiopycommons-2024.9.17a330.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
50
|
+
sapiopycommons-2024.9.17a330.dist-info/RECORD,,
|
|
File without changes
|
{sapiopycommons-2024.9.12a329.dist-info → sapiopycommons-2024.9.17a330.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|