From 0c6167249fa330c7d2dcb4a80849bceaa737c9f8 Mon Sep 17 00:00:00 2001 From: Evgueni Ovtchinnikov Date: Thu, 26 Oct 2023 16:40:43 +0000 Subject: [PATCH] small corrections in MR/acquisition_data.py --- examples/Python/MR/acquisition_data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Python/MR/acquisition_data.py b/examples/Python/MR/acquisition_data.py index a06162ee8..59fd935d6 100644 --- a/examples/Python/MR/acquisition_data.py +++ b/examples/Python/MR/acquisition_data.py @@ -40,6 +40,7 @@ from docopt import docopt args = docopt(__doc__, version=__version__) +import ast from sirf.Utilities import error, examples_data_path, existing_filepath # import MR engine module @@ -53,9 +54,9 @@ data_path = examples_data_path('MR') slcs = int(args['--slices']) to_be_ignored = args['--ignore'] -ignored_mask = IgnoreMask(0) +ignored_mask = mr.IgnoreMask(0) if to_be_ignored is not None: - ignored_mask.ignore(literal_eval(to_be_ignored)) + ignored_mask.ignore(ast.literal_eval(to_be_ignored)) show_plot = not args['--non-interactive'] def main():