SDXorg / pysd

System Dynamics Modeling in Python
http://pysd.readthedocs.org/
MIT License
379 stars 88 forks source link

PySD data files load does not allow for encoding #455

Open rachieg2 opened 3 weeks ago

rachieg2 commented 3 weeks ago

Even though the Columns() object has an option for encoding, this parameter does not appear to be passed through the helpers to load_vensim() or any similar top-level function. Please allow me to specify encoding when I pass data files to the load. Thanks!

enekomartinmartinez commented 2 weeks ago

Sure, I could add that support. Would you have a common encoding for all the files? I would prefer to have a str argument but I could make it a dict if necessary.

enekomartinmartinez commented 2 weeks ago

Let me know if the changes in https://github.com/SDXorg/pysd/tree/add_tabdata_encoding fill your requirements and if not if you need access to other arguments. If so, I could try to add a more generic kwarg dict for these files.