Closed kknappmann closed 1 month ago
@FlorianK13 did you have time to look into this yet?
Hi @kknappmann, I'll have a look at it when I'm back at work
I was not able to reproduce this error. The table einheitenaenderungnetzbetreiberzuordnungen was added as a new table in #510 - @kknappmann could you delete your existing sqlite database and download + parse the MaStR again?
Then this code should successfully parse the table einheitenaenderungnetzbetreiberzuordnungen: db = Mastr() db.download(data="changed_dso_assignment")
Hi Florian, I can confirm that it works again, thank you! :)
Description of the issue
Hey guys, I am getting a key error when downloading the solar data. Code: db = Mastr() db.download(data="solar") Logs: ... File 'AnlagenEegSolar_44.xml' is parsed. Data is cleansed. Traceback (most recent call last): gridregistrations.py line 29, in main: db.download(data="solar") File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/open_mastr/mastr.py", line 231, in download write_mastr_xml_to_database(File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site packages/open_mastr/xml_download/utils_write_to_database.py", line 34, in write_mastr_xml_to_database if is_table_relevant( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/open_mastr/xml_download/utils_write_to_database.py", line 76, in is_table_relevant tablename_mapping[xml_tablename]["class"] is not None