nipy / niwidgets

Neuroimaging widgets for jupyter notebooks
http://www.nipy.org/niwidgets
Other
84 stars 34 forks source link

ENH/niwidget_volume.py- delete os import #24

Closed CRiddler closed 6 years ago

CRiddler commented 6 years ago

os was imported for use of os.path.isfile(), however since we're using pathlib.Path objects, we can simply check with Path.is_file(), since this was the only reason os was imported, we can get rid of the import entirely

janfreyberg commented 6 years ago

This is great, thanks. I'll test it in a bit.