Skip to content

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

@avanlinden

Description

@avanlinden

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions