xoceanmodel / xroms

Work with ROMS ocean model output with xarray
https://xroms.readthedocs.io/
MIT License
62 stars 39 forks source link

Allow file name to be a `pathlib.Path` #22

Closed christophrenkl closed 2 years ago

christophrenkl commented 3 years ago

The pathlib module makes it convenient to handle file names and paths. xarray supports pathlib.Path objects in its various functions to open and save files. By allowing file names to be either a string or pathlib.Path, this functionality becomes readily available in xroms.

kthyng commented 2 years ago

Hi @christophrenkl and thanks for this PR! I'm sorry it took me so long to get to it. I didn't have notifications turned on, and also haven't had time for this project. But, I am working on bringing it back up to speed. Thanks again!