Frames inherit from ASE's Atoms class, but due to differences in attributes, many functions unexpectedly break.
For example, attempting to print a single Frame raises AttributeError: 'numpy.ndarray' object has no attribute 'get_chemical_formula'.
Errors also occur when attempting to calculate distances between Frames using ase.geometry.distance, as this calls atoms.copy(), which raises TypeError: __init__() got an unexpected keyword argument 'cell'.
Unexpected arguments could be fixed by adding **kwargs, but Frame currently also requires arguments that would be missing.
The same error (AttributeError: 'numpy.ndarray' object has no attribute 'formula') is also thrown when attempting to write a .cif file through Dataset.write.
Frames inherit from ASE's
Atoms
class, but due to differences in attributes, many functions unexpectedly break.For example, attempting to print a single
Frame
raisesAttributeError: 'numpy.ndarray' object has no attribute 'get_chemical_formula'
.Errors also occur when attempting to calculate distances between
Frames
usingase.geometry.distance
, as this callsatoms.copy()
, which raisesTypeError: __init__() got an unexpected keyword argument 'cell'
.Unexpected arguments could be fixed by adding **kwargs, but Frame currently also requires arguments that would be missing.
The same error (
AttributeError: 'numpy.ndarray' object has no attribute 'formula'
) is also thrown when attempting to write a .cif file throughDataset.write
.