Skip to content

Commit 044ad6f

Browse files
authored
Merge pull request #24 from CRiddler/CRiddler-niwidget_volume-os_import
ENH/niwidget_volume.py- delete os import
2 parents d9ed55d + c81715b commit 044ad6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

niwidgets/niwidget_volume.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from ipywidgets import interact, fixed, IntSlider
66
import inspect
77
import scipy.ndimage
8-
import os
98

109
# import pathlib & backwards compatibility
1110
try:
@@ -45,7 +44,7 @@ def __init__(self, filename):
4544
self.data = filename
4645
else:
4746
filename = Path(filename).resolve()
48-
if not os.path.isfile(filename):
47+
if not filename.is_file():
4948
raise OSError('File ' + filename.name + ' not found.')
5049

5150
# load data in advance

0 commit comments

Comments
 (0)