Skip to content
Snippets Groups Projects
Commit 6d8d520c authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

shorten long htc filenames in wetb.hawc2.Simulation

parent edcc714b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -100,7 +100,7 @@ class Simulation(object):
self.time_stop = self.htcFile.simulation.time_stop[0]
self.hawc2exe = hawc2exe
self.copy_turbulence = copy_turbulence
self.simulation_id = (htcfilename + "_%d" % id(self)).replace("\\","/").replace("/", "_")
self.simulation_id = (htcfilename.replace("\\","/").replace("/", "_")[:50]+ "_%d" % id(self))
if self.simulation_id.startswith("input_"):
self.simulation_id = self.simulation_id[6:]
self.stdout_filename = fmt_path(os.path.join(os.path.relpath(self.exepath, self.modelpath),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment