From c06359347b099aa59ea7e498d95b9ca2067376dd Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Tue, 15 Dec 2020 18:30:55 +0100 Subject: [PATCH] [plotter] [galactica] datafile name is now rule name --- plotter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plotter.py b/plotter.py index bbfed0b..df9a782 100644 --- a/plotter.py +++ b/plotter.py @@ -72,9 +72,9 @@ class PlotRule(Rule): self.postproc.save = save return self.process_fn(arg, **kwargs) - def datafile(self, arg): + def datafile(self, name, arg): return Datafile( - name=self.description + "_" + arg, + name=name + "_" + arg, description=self.description + " ({})".format(arg), ) @@ -327,7 +327,7 @@ class Plotter(Aggregator, BaseProcessor): save.close() # Save in astrophysix format - df = rule.datafile(arg) + df = rule.datafile(name, arg) df[filetype] = plot_filename if plot_info is not None: df.plot_info = plot_info