Commit 19b9d8c4 authored by Anchal Gupta's avatar Anchal Gupta

Plots will be saved in same directory

parent dc17587c
...@@ -45,6 +45,7 @@ def beatnoteSpecPlot(filesDir=None, savedEstPSDs=None, ...@@ -45,6 +45,7 @@ def beatnoteSpecPlot(filesDir=None, savedEstPSDs=None,
except BaseException: except BaseException:
inst = 'Moku' inst = 'Moku'
BNspecList += [[fn, np.loadtxt(fn), temp['detector'], inst]] BNspecList += [[fn, np.loadtxt(fn), temp['detector'], inst]]
os.chdir(cwd)
BNspecList.sort(key=fnTomktime) BNspecList.sort(key=fnTomktime)
nosbud = noiseBudget(lightInit=True) nosbud = noiseBudget(lightInit=True)
toPlot = [] toPlot = []
...@@ -165,7 +166,6 @@ def beatnoteSpecPlot(filesDir=None, savedEstPSDs=None, ...@@ -165,7 +166,6 @@ def beatnoteSpecPlot(filesDir=None, savedEstPSDs=None,
asdPlot2.savefig(asdPlot2Name, asdPlot2.savefig(asdPlot2Name,
facecolor=asdPlot2.get_facecolor(), facecolor=asdPlot2.get_facecolor(),
bbox_inches='tight') bbox_inches='tight')
os.chdir(cwd)
return asdPlot1Name, asdPlot2Name return asdPlot1Name, asdPlot2Name
......
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