SPF-OST / pytrnsys

Package that provides functionality to run and process, plot and report TRNSYS simulations
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
11 stars 8 forks source link

Strange behavior for type 15 when file not found: `End of file encountered` #198

Closed ahobeost closed 1 month ago

ahobeost commented 1 month ago

Problem: The feedback of type 15 is inconsistent. When the folder cannot be found, trnsys provides the following helpful error: Unable to open the file associated with an ASSIGNED logical unit number. Please check the ASSIGN statement and make sure that the file exists at the specified location

When the folder does exist AND the file itself does not, the following happens instead: End of file encountered

This seems to happen for the following reason.

Solution: Check the location of the file relative to the place the final .dck is located. It is likely best to overwrite the assign in the config file. assign path-relative-to-final-dck-location.csv unitReaderName