Skip to content

Commit

Permalink
get_metadata nocache fix in structured_data
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Mar 7, 2024
1 parent 8f62194 commit 8cff942
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dcicutils/structured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,12 @@ def __init__(self,
self._ref_lookup_strategy = ref_lookup_strategy
else:
self._ref_lookup_strategy = lambda type_name, value: StructuredDataSet.REF_LOOKUP_DEFAULT
self._ref_cache = {} if not ref_lookup_nocache else None
if ref_lookup_nocache is True:
self.get_metadata = self.get_metadata_nocache
self._ref_cache = None
else:
self.get_metadata = self.get_metadata_cache
self._ref_cache = {}
self._ref_cache_hit_count = 0
self._ref_lookup_count = 0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.8.0.1b1" # TODO: To become 8.8.1
version = "8.8.0.1b2" # TODO: To become 8.8.1
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 8cff942

Please sign in to comment.