Skip to content

Commit

Permalink
Update helpers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis authored Dec 6, 2023
1 parent 4549cd9 commit 22740c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ndcube/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def get_hash_library_name():
Generate the hash library name for this env.
"""
ft2_version = f"{mpl.ft2font.__freetype_version__.replace('.', '')}"
animators_version = "dev" if "dev" in mpl_animators.__version__ else mpl_animators.__version__.replace('.', '')
mpl_version = "dev" if "+" in mpl.__version__ else mpl.__version__.replace('.', '')
astropy_version = "dev" if "dev" in astropy.__version__ else astropy.__version__.replace('.', '')
animators_version = "dev" if (("dev" in mpl_animators.__version__) or ("rc" in mpl_animators.__version__)) else mpl_animators.__version__.replace('.', '')
mpl_version = "dev" if (("dev" in mpl.__version__) or ("rc" in mpl.__version__)) else mpl.__version__.replace('.', '')
astropy_version = "dev" if (("dev" in astropy.__version__) or ("rc" in astropy.__version__)) else astropy.__version__.replace('.', '')
return f"figure_hashes_mpl_{mpl_version}_ft_{ft2_version}_astropy_{astropy_version}_animators_{animators_version}.json"


Expand Down

0 comments on commit 22740c3

Please sign in to comment.