Skip to content

Commit

Permalink
Merge pull request #186 from DiamondLightSource/fixdenimp
Browse files Browse the repository at this point in the history
fixes the import for denoisers
  • Loading branch information
dkazanc authored Jan 17, 2025
2 parents df49be2 + e472bb3 commit d7090ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion httomolibgpu/misc/denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
from numpy import float32
from unittest.mock import Mock

from ccpi.filters.regularisersCuPy import ROF_TV, PD_TV
if cupy_run:
from ccpi.filters.regularisersCuPy import ROF_TV, PD_TV
else:
ROF_TV = Mock()
PD_TV = Mock()


__all__ = [
"total_variation_ROF",
Expand Down

0 comments on commit d7090ec

Please sign in to comment.