Skip to content

Commit

Permalink
added more explicit error handling in colab
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomsaraiva committed Jan 23, 2024
1 parent f2a0ed3 commit e632cff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nanopyx/core/transform/convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def convolution2D_transonic(image, kernel):
except ImportError:
print("Transonic is not installed, defaulting to Python")
return convolution2D_python(image, kernel)
except ModuleNotFoundError:
print("Transonic is not installed, defaulting to Python")
return convolution2D_python(image, kernel)


@njit(cache=True, parallel=True)
Expand Down

0 comments on commit e632cff

Please sign in to comment.