Skip to content

[feat] with syntax for open_dataset #5

@lupemba

Description

@lupemba

The with statement helps to ensure that the file is closed. 8. Compound statements — Python 3.14.0 documentation

This could be useful feature.

with metop_reader.open_dataset(file_path=str(test_file_path)) as ds:
    ## read some data

# metop_reader.close_dataset is automatically called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions