En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Commit 232ac43f authored by Rabotin Michael's avatar Rabotin Michael
Browse files

Corrected error in file closing

parent 6239144d
......@@ -662,7 +662,7 @@ def main(parms_file, nbProc, generator=False):
p.wait()
pReclass.stdin.close()
pReclass.wait()
p.close()
grass_run_command('r.statistics', flags='c',base=hrus, cover=slope_labeled, method='average', output=slope_avg, overwrite='True')
grass_run_command('r.mapcalc', expression='slope_avg_cval=int(@slope_avg*1000)/1000.0', overwrite='True')
......@@ -845,7 +845,7 @@ def main(parms_file, nbProc, generator=False):
for l in vals:
p.write(l)
p.write(footer)
par.close()
save_config = os.path.join(directory_out, 'hrudelin_config_save.cfg')
#os.system('cp "%s" "%s" ' % (parms_file, save_config))
......
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