From 142e21e25414281dfab9d1e850d2d66325e5a5a5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 25 Nov 2020 10:20:36 -0500 Subject: [PATCH] BF: add h5py.__version__ into the list of tokens for caching h5py 3.0 introduced breaking changes (see e.g. https://github.com/dandi/dandi-cli/issues/282) and hdmf yet to account for them. We better cache that version too to improve consistency of outputs etc --- dandi/pynwb_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandi/pynwb_utils.py b/dandi/pynwb_utils.py index f3132e382..a152a28e8 100644 --- a/dandi/pynwb_utils.py +++ b/dandi/pynwb_utils.py @@ -26,7 +26,7 @@ # strip away possible development version marker dandi_rel_version = __version__.split("+", 1)[0] -dandi_cache_tokens = [pynwb.__version__, dandi_rel_version] +dandi_cache_tokens = [pynwb.__version__, dandi_rel_version, h5py.__version__] metadata_cache = PersistentCache(name="metadata", tokens=dandi_cache_tokens) validate_cache = PersistentCache(name="validate", tokens=dandi_cache_tokens)