Refactoring of FieldSet field store #1663
Labels
coding/Python
good first issue
Good for new parcels developers
needs investigation
refactor
code to refactor
unstructured grids
Development of unstructured grids support
Parcels/parcels/fieldset.py
Lines 162 to 197 in 595b7a9
I don't like the current implementation of
.add_field()
callingset_attr(self, name, field)
. Programmatically storing these fields messes with static typecheckers, and it would be clearer if this was handled another way (either a list of fields, a dictionary, or something else). We can set__getattr__
so users can still dofieldset.U
The text was updated successfully, but these errors were encountered: