diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 01:13:11 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-21 01:13:11 -0500 |
commit | d65fc7d331ff505bcb948e272002fd54ce736e56 (patch) | |
tree | ce9d3bca9eb5e1132e3e192c2269a4b5944b1d79 /qolab | |
parent | 18fc472a16feceecad4310afad510d24f266ad24 (diff) | |
download | pyExpControl-d65fc7d331ff505bcb948e272002fd54ce736e56.tar.gz pyExpControl-d65fc7d331ff505bcb948e272002fd54ce736e56.zip |
fixed save for Trace and TraceXY
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/data/trace.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 9682af9..0a16ab2 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -99,14 +99,15 @@ class Trace: plt.grid() def getConfig(self): - return( self.config ) + d ={} + d['config'] = self.config.copy() + return( d ) def getData(self): return( self.values ) def getHeader(self, prefix=''): - d ={} - d['config'] = self.getConfig() + d = self.getConfig() return headerFromDictionary(d, prefix='') def save(self, fname, last_saved_pos=None, skip_headers_if_file_exist=False, **kwargs): @@ -152,7 +153,8 @@ class TraceXY(Trace): plt.grid() def getConfig(self): - config = self.config.copy() + config = {} + config['config'] = self.config.copy() config['TraceX'] = {} config['TraceX'] = self.x.getConfig() config['TraceY'] = {} |