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

Code formatting.

parent 467521eb
......@@ -206,7 +206,7 @@ def main():
'Please either set it or include it in data header'))
if args.dwell_time is not None:
bw = 1/args.dwell_time
bw = 1 / args.dwell_time
elif dataheader['bandwidth'] is not None:
bw = dataheader['bandwidth']
if args.verbose:
......@@ -218,7 +218,7 @@ def main():
# Fix case where basis file contains no header info (e.g. .RAW)
if basisheader is None:
basisheader = {'bandwidth': bw,
'dwelltime': 1/bw,
'dwelltime': 1 / bw,
'centralFrequency': cf}
else:
basisheader = basisheader[0]
......@@ -282,7 +282,7 @@ def main():
if not args.verbose:
print('Adding macromolecules')
nMM = mrs.add_MM_peaks(gamma=10, sigma=20)
G = [i+max(metab_groups)+1 for i in range(nMM)]
G = [i + max(metab_groups) + 1 for i in range(nMM)]
metab_groups += G
# Choose fitting lineshape model.
......@@ -311,7 +311,7 @@ def main():
# Quantification
# Echo time
if args.TE is not None:
echotime = args.TE*1E-3
echotime = args.TE * 1E-3
elif 'meta' in basisheader:
if 'TE' in basisheader['meta']:
echotime = basisheader['meta']['TE']
......@@ -355,7 +355,7 @@ def main():
# Report on the fitting
if args.verbose:
duration = stop-start
duration = stop - start
print(f' Fitting lasted : {duration:.3f} secs.\n')
# Save output files
if args.verbose:
......
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