Skip to content

Remove custom from_netcdf function #1716

Open
@williambdean

Description

@williambdean

This warning doesnt appear in the new arviz versions

def from_netcdf(filepath: str | Path) -> az.InferenceData:
"""Load inference data from a netcdf file without `fit_data` group warnings.
Parameters
----------
filepath : str or Path
The path to the netcdf file.
Returns
-------
az.InferenceData
The inference data.
"""
with warnings.catch_warnings():
warnings.filterwarnings(
"ignore",
category=UserWarning,
message=r"fit_data group is not defined in the InferenceData scheme",
)
return az.from_netcdf(filepath)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers . Doesn't require extensive knowledge of the repo and packagemaintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions