Skip to content

Add dump/dumps methods to AreaDefinition #152

@djhoese

Description

@djhoese

There is currently a create_areas_def method in AreaDefinition that produces the YAML needed to save the area to a file. I was thinking we could change this to dump and/or dumps similar to json (and maybe other libraries). dumps would return a string and dump would take a file-like object and write this string to a file. I could see how the dump is method is not needed or could be fulfilled by a keyword argument to dumps...in which case maybe it should just be dump?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions