[plotter] [galactica] [bug] fix error when arg is None
This commit is contained in:
+3
-1
@@ -72,8 +72,10 @@ class PlotRule(Rule):
|
||||
return self.process_fn(arg, **kwargs)
|
||||
|
||||
def datafile(self, name, arg):
|
||||
if arg is not None:
|
||||
name = name + "_" + str(arg)
|
||||
return Datafile(
|
||||
name=name + "_" + arg,
|
||||
name=name,
|
||||
description=self.description + " ({})".format(arg),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user