From 2d34ba0487f814e4452a34338d68883ab12ae85c Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 14 Dec 2021 09:44:53 -0500 Subject: trace save returns filename --- qolab/data/trace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qolab') diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 7154896..e81cced 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -36,7 +36,8 @@ class Trace: return headerFronDictionary(self.getConfig(), prefix='') def save(self, fname, item_format='e', **kwargs): - save_table_with_header(fname, self.getData(), self.getHeader(), item_format=item_format, **kwargs) + fname = save_table_with_header(fname, self.getData(), self.getHeader(), item_format=item_format, **kwargs) + return(fname) def addPoint(self, val): self.values = np.append(self.values, val) -- cgit v1.2.3