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

BUG: Desired files with long file names used in variations cannot be created. #163

Open ahobeost opened 1 year ago

ahobeost commented 1 year ago

On windows, the standard python 'open' command cannot handle paths that are too long: with open(fileNamePath, w): ... This will throw the following error: FileNotFoundError: [Errno 2] No such file or directory: 'results\\simulationName-variation1Value1-variation2Value2-variation3Value3......\\'simulationName-variation1Value1-variation2Value2-variation3Value3......-result.json'

Firstly, this error isn't helpful, as the most common reason for this error is that the folder doesn't exist (not the case here). Next, it would be helpful if this issue wouldn't occur.