Commit 9b41eb2b authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files


parent 1f21f1a8
...@@ -369,13 +369,19 @@ def wet_or_dry_pipeline(args): ...@@ -369,13 +369,19 @@ def wet_or_dry_pipeline(args):
affout.write(sar+";"+res[0]+";"+res[1]+"\n") affout.write(sar+";"+res[0]+";"+res[1]+"\n")
def get_model4invertion(): def get_model4invertion():
sardate = os.path.basename(sarvv).split("_")[4] sardate = os.path.basename(sarvv).split("_")[4].split("T")[0]
with open(modelchoice) as mc: with open(modelchoice) as mc:
for line in mc: for line in mc:
sline = line.split(";") sline = line.split(";")
dline = os.path.basename(sline[0]).split("_")[4].split("T")[0] dline = os.path.basename(sline[0]).split("_")[4].split("T")[0]
if dline == sardate : if dline == sardate :
return sline[2][:-1] result=sline[2][:-1]
if result == None:
print("Error : Can't find date in modelchoice file for sar :"+os.path.basename(sarvv))
def short_pipeline(intersectionEnv): def short_pipeline(intersectionEnv):
global slopevalue global slopevalue
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment