Skip to content

Use same code style for inverse_distance_weighted.py and nearest_neighbor.py  #924

@ahijevyc

Description

@ahijevyc

Under uxarray.remap, inverse_distance_weighted.py and nearest_neighbor.py have a lot of the same code but have different documentation style. Their formatting styles should probably be brought back into agreement.

There is a lot of repeated code also. Perhaps that can be just in one place and reused.

I put in a pull request #923 for a neighborhood filter apply_func that started with the code in these functions as a template, so there was a lot of copying and pasting. If the shared code was in one place it could serve 3 different functions, inverse_distance_weighted.py and nearest_neighbor.py and the potential new function apply_func.

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions