sapiopycommons 2025.2.6a420__py3-none-any.whl → 2025.2.6a421__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.

@@ -1,4 +1,5 @@
1
1
  import base64
2
+ import math
2
3
  from typing import Final, Mapping, Any
3
4
 
4
5
  from pandas import DataFrame
@@ -148,7 +149,8 @@ def create_experiment_details_from_json(user: SapioUser,
148
149
  for key in valid_keys:
149
150
  # Watch out for NaN values or other special values.
150
151
  val: Any = json_dict.get(key)
151
- if fields_by_name[key].data_field_type == FieldType.DOUBLE and not isinstance(val, (int, float)):
152
+ if (fields_by_name[key].data_field_type == FieldType.DOUBLE
153
+ and (not isinstance(val, (int, float))) or (isinstance(val, float) and math.isnan(val))):
152
154
  val = None
153
155
  field_map[display_to_field_name[key]] = val
154
156
  field_maps.append(field_map)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.2.6a420
3
+ Version: 2025.2.6a421
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>
@@ -15,7 +15,7 @@ sapiopycommons/datatype/attachment_util.py,sha256=_l2swuP8noIGAl4bwzBUEhr6YlN_OV
15
15
  sapiopycommons/datatype/data_fields.py,sha256=C6HpqtEuF0KsxhlBUprfyv1XguaXql3EYWVbh8y-IFU,4064
16
16
  sapiopycommons/datatype/pseudo_data_types.py,sha256=6TG7aJxgmUZ8FQkWBcgmbK5oy7AFFNtKOPpi1w1OOYA,27657
17
17
  sapiopycommons/elain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- sapiopycommons/elain/tool_of_tools.py,sha256=r_7o0eRFMEYmiqnvsApRkLtRH-98qxRRbtcCFlgu_a0,25153
18
+ sapiopycommons/elain/tool_of_tools.py,sha256=laacUopEoExV5ayt7-UA1UeXczqDDJlt6AlRAug6dzQ,25237
19
19
  sapiopycommons/eln/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  sapiopycommons/eln/experiment_handler.py,sha256=8hmR7sawDo9K6iBwB44QSoxlH1M91inor7dfuXQ4LKs,69323
21
21
  sapiopycommons/eln/experiment_report_util.py,sha256=EA2Iq8gW17bSEI6lPoHYQQ-fDvG4O28RWOoTPXpOlUw,36640
@@ -57,7 +57,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
57
57
  sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
58
58
  sapiopycommons/webhook/webhook_handlers.py,sha256=M5PMt-j7PpnzUQMUQDTvqwJUyJNxuFtC9wdnk5VRNpI,39703
59
59
  sapiopycommons/webhook/webservice_handlers.py,sha256=Y5dHx_UFWFuSqaoPL6Re-fsKYRuxvCWZ8bj6KSZ3jfM,14285
60
- sapiopycommons-2025.2.6a420.dist-info/METADATA,sha256=d1aGkNRwr445U_QRg7QIS0S6sihlHnsErZnCLrdVS-A,3142
61
- sapiopycommons-2025.2.6a420.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
62
- sapiopycommons-2025.2.6a420.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
63
- sapiopycommons-2025.2.6a420.dist-info/RECORD,,
60
+ sapiopycommons-2025.2.6a421.dist-info/METADATA,sha256=90F0XGGSIBnyrH9EKr1tN-ej-0XNoGxKBBXOebv3898,3142
61
+ sapiopycommons-2025.2.6a421.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
62
+ sapiopycommons-2025.2.6a421.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
63
+ sapiopycommons-2025.2.6a421.dist-info/RECORD,,