Skip to content

Commit

Permalink
try1
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazanc committed Apr 30, 2024
1 parent 8d4db97 commit 20db114
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 2,446 deletions.
14 changes: 7 additions & 7 deletions httomolibgpu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from httomolibgpu.misc.corr import *
from httomolibgpu.misc.morph import *
from httomolibgpu.prep.alignment import *
from httomolibgpu.prep.normalize import *
from httomolibgpu.prep.phase import *
from httomolibgpu.prep.stripe import *
from httomolibgpu.recon.algorithm import *
from httomolibgpu.recon.rotation import *
#from httomolibgpu.misc.morph import *
#from httomolibgpu.prep.alignment import *
#from httomolibgpu.prep.normalize import *
#from httomolibgpu.prep.phase import *
#from httomolibgpu.prep.stripe import *
#from httomolibgpu.recon.algorithm import *
#from httomolibgpu.recon.rotation import *
12 changes: 8 additions & 4 deletions httomolibgpu/misc/corr.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@

try:
import cupy as cp
import nvtx
except ImportError:
print("Cupy library is a required dependency for HTTomolibgpu, please install")

try:
from cucim.skimage.filters import median
from cucim.skimage.morphology import disk
except ImportError:
print("Cucim library of RapidsAI is a required dependency for HTTomolibgpu, please install")

from typing import Tuple
import numpy as np
import nvtx
from numpy import float32

from httomolibgpu.cuda_kernels import load_cuda_module
Expand Down Expand Up @@ -69,9 +76,6 @@ def median_filter(
ValueError
If the input array is not three dimensional.
"""
from cucim.skimage.filters import median
from cucim.skimage.morphology import disk

input_type = data.dtype

if input_type not in ["float32", "uint16"]:
Expand Down
214 changes: 0 additions & 214 deletions httomolibgpu/misc/morph.py

This file was deleted.

94 changes: 0 additions & 94 deletions httomolibgpu/misc/rescale.py

This file was deleted.

Empty file removed httomolibgpu/prep/__init__.py
Empty file.
Loading

0 comments on commit 20db114

Please sign in to comment.