Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
13eb2ed7
Commit
13eb2ed7
authored
Jun 09, 2020
by
Pierre Paleo
Browse files
Do a conditional import for CudaUnsharpMask
parent
178c6cdf
Pipeline
#26954
failed with stages
in 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/double_flatfield_cuda.py
View file @
13eb2ed7
...
...
@@ -2,12 +2,12 @@ import numpy as np
from
.double_flatfield
import
DoubleFlatField
from
..utils
import
check_shape
from
..cuda.utils
import
get_cuda_context
,
__has_pycuda__
from
..misc.unsharp_cuda
import
CudaUnsharpMask
if
__has_pycuda__
:
import
pycuda.gpuarray
as
garray
import
pycuda.cumath
as
cumath
from
..cuda.processing
import
CudaProcessing
from
..misc.unsharp_cuda
import
CudaUnsharpMask
class
CudaDoubleFlatField
(
DoubleFlatField
,
CudaProcessing
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment