Commit 02977d83 authored by inhuszar's avatar inhuszar
Browse files

Bugfix: load sites as list from command line.

parent 94975083
......@@ -593,7 +593,7 @@ def block_to_slice(args):
cnf["regparams"]["sites"] = np.atleast_2d([float(y), float(x)])
elif os.path.isfile(args.init[0]):
sites = np.loadtxt(args.init[0])
cnf["regparams"]["sites"] = np.atleast_2d(sites)
cnf["regparams"]["sites"] = np.atleast_2d(sites).tolist()
else:
raise ValueError("Invalid insertion site specification.")
if args.out:
......
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