Skip to content

Commit

Permalink
Update dependency_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed May 6, 2024
1 parent 6bf4ecc commit 9c6ae63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions brainpy/_src/dependency_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ def import_taichi(error_if_not_found=True):

if taichi is None:
return None
if taichi.__version__ < _minimal_taichi_version:
raise RuntimeError(taichi_install_info)
return taichi
if taichi.__version__[0] >= _minimal_taichi_version[0] and taichi.__version__[1] >= _minimal_taichi_version[1] and \
taichi.__version__[2] >= _minimal_taichi_version[2]:
return taichi
else:
raise ModuleNotFoundError(taichi_install_info)


def raise_taichi_not_found(*args, **kwargs):
Expand Down

0 comments on commit 9c6ae63

Please sign in to comment.