How to save atom_position attributes into a sublattice & atom lattice for later reloading
Hio,
I'm trying to save some assigned atom_position
attributes, such as amplitude_max_intensity
, to the atom_lattice
. I've attached a short script that describes the issue.
Basically, if you call e.g.,
sublattice.get_atom_column_amplitude_max_intensity()
intensity_list = sublattice.atom_amplitude_max_intensity
a list of the maximum intensities will be returned. If you then save the sublattice
in an atom_lattice
object and reload the same atom_lattice
, the intensities are not saved (they're all 1.0 again).
I understand one could just run the functions again, but I've a few other attributes I'd like to add and rerunning it all becomes time consuming.
Is there a way to do this at the moment? :)