Commit cca8e119 authored by Yan's avatar Yan
Browse files

Fixed the decorator from last commit

parent 558ed10b
......@@ -18,9 +18,12 @@ logger = logging.getLogger('dsLogger')
def logdecor(fnc):
def decfnc(*args, **kwargs):
logger.info(fnc.__doc__ + "...")
fnc()
out = fnc(*args, **kwargs)
logger.info("DONE: " + fnc.__doc__)
return out
return decfnc
class Dataset():
......
......@@ -457,7 +457,7 @@ def populate(augCanvas):
augCanvas.spectplot.plot(pmasses, pints, linewidth=1)
chromxy = augCanvas.ds.chromatograms
msxy = augCanvas.ds.get_spectra()
msxy = augCanvas.ds.fullspectra
for i in range(len(msxy)):
if augCanvas.ds.headers and\
len(augCanvas.ds.headers) == len(augCanvas.ds.chromatograms):
......
Markdown is supported
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