diff options
Diffstat (limited to 'qolab/data')
-rw-r--r-- | qolab/data/trace.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index e5dfa2d..de6334a 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -223,6 +223,14 @@ class TraceSetSameX(Trace): for k, tr in self.traces.items(): tr.clear_data() + def __repr__(self): + cls_name = f'{self.__class__.__name__}(' + xlabel= f"{self.x.config['label']}" + xparam= f"x: '{xlabel}'" + yparam = f"y: {list(self.traces.keys())}" + + return "".join([cls_name, xparam, ', ', yparam, f', N={self.x.values.size}', ')']) + def addTraceX(self, tr): self.x = tr |