Commit c7fd53a2 authored by payno's avatar payno
Browse files

[tomoedf2nx] fix some keys where set as a tuple from app

parent c3111582
......@@ -108,20 +108,19 @@ def main(argv):
"--z_trans_key", default=EDF_Z_TRANS, help="z translation key in EDF HEADER"
)
print("******set up***********")
options = parser.parse_args(argv[1:])
conv = utils.get_tuple_of_keys_from_cmd
file_keys = converter.EDFFileKeys(
motor_mne_key=conv(options.motor_mne_key),
motor_pos_key=conv(options.motor_pos_key),
motor_mne_key=options.motor_mne_key,
motor_pos_key=options.motor_pos_key,
ref_names=conv(options.refs_name_keys),
to_ignore=conv(options.ignore_file_containing),
rot_angle_key=conv(options.rot_angle_key),
rot_angle_key=options.rot_angle_key,
dark_names=conv(options.dark_names),
x_trans_key=conv(options.x_trans_key),
y_trans_key=conv(options.y_trans_key),
z_trans_key=conv(options.z_trans_key),
x_trans_key=options.x_trans_key,
y_trans_key=options.y_trans_key,
z_trans_key=options.z_trans_key,
)
input_dir = options.scan_path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment