Skip to content

Commit 9ed9e7e

Browse files
authored
Merge pull request #2125 from mgxd/fix/yml-load
MAINT: ensure yaml loader is specified
2 parents 8d1999f + ee51652 commit 9ed9e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fmriprep/cli/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,10 @@ def parse_args(args=None, namespace=None):
570570

571571
# Load base plugin_settings from file if --use-plugin
572572
if opts.use_plugin is not None:
573-
from yaml import load as loadyml
573+
import yaml
574574

575575
with open(opts.use_plugin) as f:
576-
plugin_settings = loadyml(f)
576+
plugin_settings = yaml.load(f, Loader=yaml.FullLoader)
577577
_plugin = plugin_settings.get("plugin")
578578
if _plugin:
579579
config.nipype.plugin = _plugin

0 commit comments

Comments
 (0)