Skip to content

Commit b897e53

Browse files
franzigeigermschrimpf
authored andcommitted
Add environment variable check (brain-score#5)
1 parent 566ee62 commit b897e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

result_caching/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def wrapper(*args, **kwargs):
258258
if key in self._combine_fields}
259259
function_identifier = self.get_function_identifier(function, call_args)
260260
stored_result, reduced_call_args = None, call_args
261-
if self.is_stored(function_identifier):
261+
if is_enabled() and self.is_stored(function_identifier):
262262
self._logger.debug(f"Loading from storage: {function_identifier}")
263263
stored_result = self.load(function_identifier)
264264
missing_call_args = self.filter_coords(infile_call_args, stored_result) if not self._sub_fields \

0 commit comments

Comments
 (0)