aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/data')
-rw-r--r--qolab/data/trace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py
index 783a649..624ff46 100644
--- a/qolab/data/trace.py
+++ b/qolab/data/trace.py
@@ -24,7 +24,7 @@ class Trace:
prefixed_header = [prefix+l for l in header]
return prefixed_header
- def write(self, fname, item_format='e'):
+ def save(self, fname, item_format='e'):
save_table_with_header(fname, self.values, self.header(), item_format=item_format)
@@ -52,7 +52,7 @@ class TraceXY:
prefixed_header = [prefix+l for l in header]
return prefixed_header
- def write(self, fname, item_format='e'):
+ def save(self, fname, item_format='e'):
data=np.concatenate((self.x.values, self.y.values), 1)
save_table_with_header(fname, data, self.header(), item_format=item_format)
@@ -100,7 +100,7 @@ class TraceSetSameX:
prefixed_header = [prefix+l for l in header]
return prefixed_header
- def write(self, fname, item_format='e'):
+ def save(self, fname, item_format='e'):
data=self.x.values
for k,v in self.traces.items():
data=np.concatenate((data, v.values), 1)