Commit becfa99d authored by William Clarke's avatar William Clarke
Browse files

Removed unnecessary argument from create report. Fixed issue with runing...

Removed unnecessary argument from create report. Fixed issue with runing combine metabs multiple times. Updated example notebook.
parent 2bdf7391
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
......@@ -346,7 +346,6 @@ def main():,
outdir=args.output,"%Y-%m-%d %H:%M"))
......@@ -178,7 +178,7 @@ def create_vox_plot(t1file,voxfile,outdir):,'voxplot.png'))
def create_report(mrs,res,filename,fidfile,basisfile,h2ofile,outdir,date):
def create_report(mrs,res,filename,fidfile,basisfile,h2ofile,date):
divlist= create_plotly_div(mrs,res)
......@@ -120,7 +120,9 @@ class FitRes(object):
"""Combine two or more basis into single result"""
# Create extra entries in the fitResults DF , add to param_names and recalculate
for toComb in combineList:
newstr = '+'.join(toComb)
newstr = '+'.join(toComb)
if newstr in self.metabs:
ds = pd.Series(np.zeros(self.fitResults.shape[0]),index=self.fitResults.index)
jac = np.zeros(self.cov.shape[0])
for metab in toComb:
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