Skip to content

Commit

Permalink
Minor import patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Oct 17, 2023
1 parent fe41284 commit 82f5ac1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bidscoin/plugins/nibabel2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
import shutil
import pandas as pd
import nibabel as nib
from nibabel.testing import data_path
from bids_validator import BIDSValidator
from typing import Union
from pathlib import Path
from bidscoin import bids
try:
from nibabel.testing import data_path
except ImportError:
from importlib.resources import files # PY38: from importlib_resources import files ???
data_path = files('nibabel')/'tests'/'data'

LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit 82f5ac1

Please sign in to comment.