cloudsci / cloudmetrics

Toolkit for computing 15+ metrics characterising 2D cloud patterns
16 stars 8 forks source link

Utils tests #61

Closed leifdenby closed 2 years ago

leifdenby commented 2 years ago

Add tests to check the functions for producing masks for periodic domains and for doing nearest-neighbor calculations on periodic domains

Related to https://github.com/cloudsci/cloudmetrics/pull/54

leifdenby commented 2 years ago

I've added a small test that also confirms this works for objects that straddle multiple boundaries at the same time, when the nearest-neighbour distance crosses both boundaries here. That works according to my expectation too; feel free to merge that in if you like before moving on to the release!

Perfect! Thanks for adding this! I'll include your addition and get this merged in.