vivarium-collective / bigraph-schema

compositional type schemas
Apache License 2.0
1 stars 1 forks source link

Warning messages #29

Closed eagmon closed 7 months ago

eagmon commented 1 year ago

we should include many useful warning messages instead of allowing the methods to throw errors, and requiring debugging to identify. One place that I have found myself regularly is in type_system.deserialize with this error:

>       if '_deserialize' in found:
E       TypeError: argument of type 'NoneType' is not iterable

This happens when an invalid schema is provided. We should print something that says what schema is failing.