Skip to content

Commit 5b338ce

Browse files
committed
updated location of to_mime within fileformats package
1 parent 9d705be commit 5b338ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype2pydra/pkg_gen/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from operator import itemgetter
1414
import yaml
1515
import black.parsing
16-
import fileformats.core.utils
16+
import fileformats.core
1717
import fileformats.core.mixin
1818
from fileformats.generic import File, Directory
1919
from fileformats.medimage import Nifti1, NiftiGz, Bval, Bvec
@@ -261,7 +261,7 @@ def generate_yaml_spec(self) -> str:
261261
def type2str(tp):
262262
if tp in non_mime:
263263
return tp.__name__
264-
return fileformats.core.utils.to_mime(tp, official=False)
264+
return fileformats.core.to_mime(tp, official=False)
265265

266266
tests, doctests = self._gen_tests(
267267
doctest_blocks, input_types, output_types, output_templates

0 commit comments

Comments
 (0)