We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9ed55d + c81715b commit 044ad6fCopy full SHA for 044ad6f
niwidgets/niwidget_volume.py
@@ -5,7 +5,6 @@
5
from ipywidgets import interact, fixed, IntSlider
6
import inspect
7
import scipy.ndimage
8
-import os
9
10
# import pathlib & backwards compatibility
11
try:
@@ -45,7 +44,7 @@ def __init__(self, filename):
45
44
self.data = filename
46
else:
47
filename = Path(filename).resolve()
48
- if not os.path.isfile(filename):
+ if not filename.is_file():
49
raise OSError('File ' + filename.name + ' not found.')
50
51
# load data in advance
0 commit comments