Refactor relate_structures in atoms.py
Description
This function is too long and too complicated.
Demonstration
The task has been implemented successfully if you can look at it without getting a headache.
Background
It actually was even worse before.
Note!
Please don't remove the TODOs (unless you fix them)
Consider #198 as a test case.
--> # TODO: Actually forward the symprec
Also consider https://wiki.fysik.dtu.dk/ase/_modules/ase/build/rotate.html#minimize_rotation_and_translation
Edited by Paul Erhart