Commit 79d68ffb authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

allow in-memory basis functions

parent c79ceb9c
Pipeline #8335 failed with stages
...@@ -57,7 +57,10 @@ def prep_mrs_for_synthetic(basisFile, points, bandwidth, ignore, ind_scaling, co ...@@ -57,7 +57,10 @@ def prep_mrs_for_synthetic(basisFile, points, bandwidth, ignore, ind_scaling, co
metabolites in the basis file can be ignored or independently scaled. metabolites in the basis file can be ignored or independently scaled.
""" """
basis, names, header = mrs_io.read_basis(basisFile) if isinstance(basisFile, str):
basis, names, header = mrs_io.read_basis(basisFile)
else:
basis, names, header = basisFile
empty_mrs = MRS(FID=np.ones((points,)), empty_mrs = MRS(FID=np.ones((points,)),
cf=header[0]['centralFrequency'], cf=header[0]['centralFrequency'],
......
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