kevinwolz / hisafer

An R toolbox for the Hi-sAFe biophysical agroforestry model
6 stars 4 forks source link

Output files are corrupted (but not always) #134

Closed Guillaume-Blanchet closed 4 years ago

Guillaume-Blanchet commented 4 years ago

Hi all, I report here a bug that I am facing since a few weeks and that is inconsistent accross simulations that I perform. I run simulations of Hi-sAFe through hisafer, and everything appears to be work perfectly until the file generation itself. However, when it comes to file reading, it appears that some of the generated output files contain additionnal information that hinder the possibility of reading them with hisafer.

As an example, I attached two files - one corrupted and one perfectly generated. One might observe that additionnal lines were added in the corrupted file - those lines correspond to input files (here it is code lines coming from the .tec file )

The issue is inconsistent in the sense of :

PS : I am not sure if this is related to HisAFe itself or hisafer, so I post this issue on both github (Hisafe and hisafer) L1N30_L2N10_annualCells(corrupted).txt L1N30_L2N10_annualCells.txt

Guillaume-Blanchet commented 4 years ago

Link of the issue reported on the Hisafe github : https://github.com/hisafe/hisafe/issues/47 (need access right)

kevinwolz commented 4 years ago

Very weird! This is definitely a Hi-sAFe issue, though, not hisafer. hisafer never edits the output files - it just reads them.