adknowledgeportal / data-models

AD Portal data model
MIT License
3 stars 3 forks source link

assemble_csv_data_model.py needs to check for valid value strings that get converted to python data types #82

Open avanlinden opened 6 months ago

avanlinden commented 6 months ago

The csv assembly script was interpreting the attribute column for the valid value 'None' belonging to parent attribute consevationMethod as the python type None, resulting in an assembled csv with nothing in the Attribute column and causing json-ld conversion to fail.

Fix: function to check for values that are interpreted as None and report error.

Error in the Github action: AttributeError: 'float' object has no attribute 'strip' Error when running on the schematic CLI in codespace: ValueError: The value type recorded for this relationship, is not currently supported for CSV parsing. Please check with your DCC..

I don't love that we get two different errors using the same python version (3.10) and schematic version (24.2.1) but that's a sticky wicket for another time.