Skip to content

Commit

Permalink
Refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Oct 30, 2023
1 parent aa832f1 commit 8b764f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion demo/src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def run(self):
)

self.slider.input(
self.get_img_pred_pair, self.slider, t,
self.get_img_pred_pair,
self.slider,
t,
)

self.slider.render()
Expand Down
4 changes: 2 additions & 2 deletions demo/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def load_ct_to_numpy(data_path):
if type(data_path) != str:
if not isinstance(data_path, str):
data_path = data_path.name

image = nib.load(data_path)
Expand All @@ -25,7 +25,7 @@ def load_ct_to_numpy(data_path):


def load_pred_volume_to_numpy(data_path):
if type(data_path) != str:
if not isinstance(data_path, str):
data_path = data_path.name

image = nib.load(data_path)
Expand Down

0 comments on commit 8b764f5

Please sign in to comment.