Skip to content

default_version arg. to NetCDFRead.read not exposed: remove? #298

@sadielbartholomew

Description

@sadielbartholomew

The netCDF-specific read, i.e. NetCDFRead.read method, has an argument default_version which isn't documented but according to a comment over logic using the corresponding variable, it supports a "default version provided by the user" for the Conventions:

def read(
self,
filename,
extra=None,
default_version=None,

however in our user-exposed read function, there is no way to access it:

def read(
filename,
external=None,
extra=None,
verbose=None,
warnings=False,
warn_valid=False,
mask=True,
domain=False,
_implementation=_implementation,
):

so there is no way to apply that in the intended way, as a user. It is not documented at all across the documentation either.

It seems like this is dead code which needs to be removed, but I've opened this as a question in case we instead want to revive it by exposing it through the read function. @davidhassell, what do you think is best?

If we want to remove the several lines of logic that concern it, I can do so as part of #296 which touches the same area of code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions