Skip to content

Warn or error rather than returning None from name check in netcdf #4495

@wjbenfold

Description

@wjbenfold

📰 Custom Issue

Based on my understanding of situations where the following code can end up returning None, I think that it's unlikely that the user doesn't want to know that this is happening.

https://github.com/SciTools/iris/blob/main/lib/iris/fileformats/netcdf.py#L344-L362

From conversation with @pp-mo, we think this means we're not saving valid CF because the aux_factory gets saved with a None formula term. That seems worth telling the user about.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions