From 6d8d520ceba5c6006d990f0d77981e3e78787e74 Mon Sep 17 00:00:00 2001
From: "Mads M. Pedersen" <mmpe@dtu.dk>
Date: Wed, 7 Jun 2017 13:23:12 +0200
Subject: [PATCH] shorten long htc filenames in wetb.hawc2.Simulation

---
 wetb/hawc2/simulation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wetb/hawc2/simulation.py b/wetb/hawc2/simulation.py
index 387f291..a5e4edf 100755
--- a/wetb/hawc2/simulation.py
+++ b/wetb/hawc2/simulation.py
@@ -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), 
-- 
GitLab