POSYDON-code/POSYDON

`find_nearest` in `gridutils`

Aperta

#465 aperta il 5 dic 2024

 (0 commenti) (0 reazioni) (0 assegnatari)Python (35 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (42 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

find_nearest doesn't use: find_index_nearest_neighbour, which is available.

Additionally, it requires the input to be numpy.array's. Can we change the code function to np.argmin()? And np.abs?

Guida contributor