aboutsummaryrefslogtreecommitdiffstats
path: root/Commons
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-09-12 08:23:30 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-09-12 08:23:30 +0200
commit8afdc428ca424defb6d71e46e19be6c0cbb99d4a (patch)
tree13fb1d155fbf40252013c949b8fe87bcc431db66 /Commons
parent8985d5df42cf6df85e688bff5ad30175bc21276d (diff)
support custom run_name in Loaders
Diffstat (limited to 'Commons')
-rw-r--r--Commons/Loaders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Commons/Loaders.py b/Commons/Loaders.py
index fdba01a..f9bec67 100644
--- a/Commons/Loaders.py
+++ b/Commons/Loaders.py
@@ -13,8 +13,8 @@ class GengaIC(Loader):
pass
class GengaOut(Loader):
- def __init__(self, nstep=1, ellipses=False):
- fname = "Outgasrun_%012d.dat" % nstep
+ def __init__(self, nstep=1, ellipses=False, run_name="gasrun"):
+ fname = "Out%s_%012d.dat" % (run_name, nstep)
Loader.__init__(self, nstep, fname, ellipses)
def load(self):