diff options
-rw-r--r-- | qolab/data/trace.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index d0d069f..15711f6 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -17,6 +17,7 @@ class Trace: self.config['unit'] = None self.config['tags'] = {} self.values = np.empty(0) + self.last_saved_pos = 0 def plot(self): import matplotlib.pyplot as plt @@ -41,7 +42,6 @@ class Trace: data = self.getData() if last_saved_pos > 0: skip_headers_if_file_exist=True - print(skip_headers_if_file_exist) fname = save_table_with_header(fname, data[last_saved_pos:,:], self.getHeader(), item_format=item_format, skip_headers_if_file_exist=skip_headers_if_file_exist, **kwargs) self.last_saved_pos = data.shape[0] return(fname) @@ -57,6 +57,7 @@ class TraceXY(Trace): self.config['tags'] = {} self.x = None self.y = None + self.last_saved_pos = 0 def plot(self): import matplotlib.pyplot as plt @@ -96,6 +97,7 @@ class TraceSetSameX(Trace): self.config['tags'] = {} self.x = None self.traces={} + self.last_saved_pos = 0 def addTrace(self, tr): if len(self.traces) == 0: |