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

Allow relative file paths in ddcks #199

Open ahobeost opened 2 months ago

ahobeost commented 2 months ago

As a user, I would like to use the provided profiles (weather, demand, etc.) close to the ddcks that read them. At the moment, the path in the ddck can only be absolute or relative to the final .dck location.

It would be great, if pytrnsys could take the path relative to the ddck and adjust it to be relative to the final .dck location.

Example:

ahobeost commented 2 months ago

After some further investigation, this issue is less severe as first thought. In the .ddck one can use PATH$ to make pytrnsys use the absolute path of the ddck.

assign PATH$/weather_profile.csv :Unit

will become: assign c:\path-to-ddck\weather_profile.csv weather_readerUnit

However, the original idea of getting paths relative to the .dck is currently not implemented.