Skip to content

Commit

Permalink
Fix numbagg version check
Browse files Browse the repository at this point in the history
Closes #281
  • Loading branch information
dcherian committed Nov 6, 2023
1 parent c15572e commit 6c65fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flox/xrutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,6 @@ def module_available(module: str, minversion: Optional[str] = None) -> bool:
has = importlib.util.find_spec(module) is not None
if has:
mod = importlib.import_module(module)
return Version(mod.__version__) < Version(minversion) if minversion is not None else True
return Version(mod.__version__) >= Version(minversion) if minversion is not None else True
else:
return False

0 comments on commit 6c65fa0

Please sign in to comment.