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?
There is currently a
create_areas_defmethod inAreaDefinitionthat produces the YAML needed to save the area to a file. I was thinking we could change this todumpand/ordumpssimilar tojson(and maybe other libraries).dumpswould return a string anddumpwould take a file-like object and write this string to a file. I could see how thedumpis method is not needed or could be fulfilled by a keyword argument todumps...in which case maybe it should just bedump?