Project-OMOTES / simulator-core

Core library for NWN simulator
GNU General Public License v3.0
1 stars 0 forks source link

Refactor py_esdl_from_file to use Path and str #161

Open samvanderzwan opened 1 week ago

samvanderzwan commented 1 week ago

Based on Pr #156 idea is to make esdl from file to be able to handle strings and path as input

MichielTukker commented 1 week ago

Revised description: omotes_simulator_core.infrastructure.utils.pyesdl_from_file() currently accepts str as input. This function should be refactored such that it accepts both str and Path objects and handles both cases (checking if file exists & conversion for pyesdl.EnergySystemHandler.load_file())