stefanfluck / palmpy

Package supporting the generation of static driver files for simulations with the PALM model system. Check out the Wiki and engage in the Discussions!
GNU General Public License v3.0
18 stars 4 forks source link

rework if-elif pattern to load mapdict #68

Open stefanfluck opened 1 year ago

stefanfluck commented 1 year ago

Not flexible when adding new dialects. Maybe read in module name and improt with importlib?

https://stackoverflow.com/questions/13598035/importing-a-module-when-the-module-name-is-in-a-variable https://www.oreilly.com/library/view/python-cookbook/0596001673/ch15s04.html

stefanfluck commented 1 year ago

possible solution in #39