HEXRD / hexrd

A cross-platform, open-source library for the analysis of X-ray diffraction data.
Other
56 stars 25 forks source link

Incorrect for Loop Implementation in unitcell.remove_duplicate_atoms #686

Closed ZackAttack614 closed 1 month ago

ZackAttack614 commented 1 month ago

This for loop in remove_duplicate_atoms appears to not be useful. It only does work on the first instance of the loop, then skips the rest.

My guess is that this is either supposed to be run with some kind of else that is missing, or this shouldn't be a for loop at all. Either way, this function is quite old and seems to me to be wrong.

Should this be fixed or removed?

psavery commented 1 month ago

@saransh13