diff options
Diffstat (limited to 'qolab/data/trace.py')
-rw-r--r-- | qolab/data/trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index d187575..7c75d39 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -2,7 +2,7 @@ from qolab.file_utils import save_table_with_header import numpy as np import yaml -def headerFronDictionary(d, prefix=''): +def headerFromDictionary(d, prefix=''): header = [] tail = yaml.dump(d, default_flow_style=False, sort_keys=False) tail = tail.split('\n') @@ -48,7 +48,7 @@ class Trace: return( self.values ) def getHeader(self, prefix=''): - return headerFronDictionary(self.getConfig(), prefix='') + return headerFromDictionary(self.getConfig(), prefix='') def save(self, fname, last_saved_pos=None, skip_headers_if_file_exist=False, **kwargs): if last_saved_pos is None: |