ksyang2013 / aimsgb

Ab-initio Interface Materials Simulation Project for Grain Boundaries (AIMSGB)
Other
57 stars 19 forks source link

Update grain.py #4

Closed ab5424 closed 2 years ago

ab5424 commented 3 years ago

The current get_orthogonal_grain returns a pymatgen Structure object instead of an aimsgb Grain object. Consequently, build_gb() does not work when using e.g. delete_layer=..., because this is only an attribute of a Grain and not a Structure (the error would then occur here).

I renamed the get into a set, but this can of course be reversed.