xgcm / xrft

Fourier transforms on xarray data structures
https://xrft.readthedocs.io/en/latest/
MIT License
154 stars 45 forks source link

Fix padding bug on no round coordinates #179

Closed santisoler closed 2 years ago

santisoler commented 2 years ago

Use numpy.linspace to build the padded coordinate arrays instead of numpy.arange. Add a new test function against coordinate arrays with no round floats.

Fixes #172

roxyboy commented 2 years ago

Is this also ready to merge @santisoler ?

santisoler commented 2 years ago

@roxyboy yes! If CI passes, feel free to merge!

santisoler commented 2 years ago

Thanks @roxyboy !