aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-05 12:52:28 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-05 12:52:28 -0500
commitc4ce398cb772da46658e942696f6ec9778ec5046 (patch)
tree15d82785106d838667898f3b37dec4363d81f179 /qolab/data
parent26ed441378daadd211042dfa00e8ec55cf87d831 (diff)
downloadqolab-c4ce398cb772da46658e942696f6ec9778ec5046.tar.gz
qolab-c4ce398cb772da46658e942696f6ec9778ec5046.zip
write -> save
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)