dcicutils 8.8.0.1b26__py3-none-any.whl → 8.8.1.1b1__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.
- dcicutils/structured_data.py +7 -4
- {dcicutils-8.8.0.1b26.dist-info → dcicutils-8.8.1.1b1.dist-info}/METADATA +1 -1
- {dcicutils-8.8.0.1b26.dist-info → dcicutils-8.8.1.1b1.dist-info}/RECORD +6 -6
- {dcicutils-8.8.0.1b26.dist-info → dcicutils-8.8.1.1b1.dist-info}/LICENSE.txt +0 -0
- {dcicutils-8.8.0.1b26.dist-info → dcicutils-8.8.1.1b1.dist-info}/WHEEL +0 -0
- {dcicutils-8.8.0.1b26.dist-info → dcicutils-8.8.1.1b1.dist-info}/entry_points.txt +0 -0
dcicutils/structured_data.py
CHANGED
@@ -307,7 +307,7 @@ class StructuredDataSet:
|
|
307
307
|
"refs_found": self.ref_total_found_count,
|
308
308
|
"refs_not_found": self.ref_total_notfound_count,
|
309
309
|
"refs_lookup": self.ref_lookup_count,
|
310
|
-
"refs_cache_hit": self.
|
310
|
+
"refs_cache_hit": self.ref_exists_cache_hit_count,
|
311
311
|
"refs_invalid": self.ref_invalid_identifying_property_count
|
312
312
|
})
|
313
313
|
self._note_warning(reader.warnings, "reader")
|
@@ -956,7 +956,9 @@ class Portal(PortalBase):
|
|
956
956
|
self._cache_ref(type_name, value, resolved)
|
957
957
|
return resolved
|
958
958
|
if update_counts:
|
959
|
-
|
959
|
+
# No do not update the not-found count if not found internally (2024-03-14).
|
960
|
+
# self._ref_total_notfound_count += 1
|
961
|
+
pass
|
960
962
|
return {} # Empty return means not resolved internally.
|
961
963
|
|
962
964
|
def _ref_exists_single_internally(self, type_name: str, value: str) -> Tuple[bool, Optional[dict]]:
|
@@ -1025,8 +1027,9 @@ class Portal(PortalBase):
|
|
1025
1027
|
|
1026
1028
|
def _ref_exists_from_cache(self, type_name: str, value: str) -> Optional[List[dict]]:
|
1027
1029
|
if self._ref_cache is not None:
|
1028
|
-
self.
|
1029
|
-
|
1030
|
+
if ref := self._ref_cache.get(f"/{type_name}/{value}", None):
|
1031
|
+
self._ref_exists_cache_hit_count += 1
|
1032
|
+
return ref
|
1030
1033
|
self._ref_exists_cache_miss_count += 1
|
1031
1034
|
return None
|
1032
1035
|
|
@@ -62,15 +62,15 @@ dcicutils/secrets_utils.py,sha256=8dppXAsiHhJzI6NmOcvJV5ldvKkQZzh3Fl-cb8Wm7MI,19
|
|
62
62
|
dcicutils/sheet_utils.py,sha256=VlmzteONW5VF_Q4vo0yA5vesz1ViUah1MZ_yA1rwZ0M,33629
|
63
63
|
dcicutils/snapshot_utils.py,sha256=ymP7PXH6-yEiXAt75w0ldQFciGNqWBClNxC5gfX2FnY,22961
|
64
64
|
dcicutils/ssl_certificate_utils.py,sha256=F0ifz_wnRRN9dfrfsz7aCp4UDLgHEY8LaK7PjnNvrAQ,9707
|
65
|
-
dcicutils/structured_data.py,sha256=
|
65
|
+
dcicutils/structured_data.py,sha256=oOozZWoPVthgT4phMUvfdKrkGrtXr4iG8bJx-N8WgJM,56767
|
66
66
|
dcicutils/task_utils.py,sha256=MF8ujmTD6-O2AC2gRGPHyGdUrVKgtr8epT5XU8WtNjk,8082
|
67
67
|
dcicutils/tmpfile_utils.py,sha256=n95XF8dZVbQRSXBZTGToXXfSs3JUVRyN6c3ZZ0nhAWI,1403
|
68
68
|
dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
|
69
69
|
dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
|
70
70
|
dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
|
71
71
|
dcicutils/zip_utils.py,sha256=rnjNv_k6L9jT2SjDSgVXp4BEJYLtz9XN6Cl2Fy-tqnM,2027
|
72
|
-
dcicutils-8.8.
|
73
|
-
dcicutils-8.8.
|
74
|
-
dcicutils-8.8.
|
75
|
-
dcicutils-8.8.
|
76
|
-
dcicutils-8.8.
|
72
|
+
dcicutils-8.8.1.1b1.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
|
73
|
+
dcicutils-8.8.1.1b1.dist-info/METADATA,sha256=E-U3-FafQD1JV8l1hGicvGeGMtkH7p3xqPtexiTmxyM,3356
|
74
|
+
dcicutils-8.8.1.1b1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
75
|
+
dcicutils-8.8.1.1b1.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
|
76
|
+
dcicutils-8.8.1.1b1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|