Skip to content

Field.__call__ has inconsistent returns: use dictionaries #60

@banesullivan

Description

@banesullivan

The __call__ method has different returns across Field subclasses... this is really messy. Would it be of interest to return a dictionary of numpy arrays in all cases?

For example, the krige classes return the field and the variance while all other field subclasses only return the field.

Using a dictionary with named arrays would help the user knows what's what when the arrays are returned and would be a lot cleaner, safer when capturing the output from different Field subclasses, and also make it seamless to add those arrays to either Meshio or PyVista meshes in Field.mesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions