Skip to content

Commit

Permalink
Support CifData conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Jan 20, 2025
1 parent c84c9f9 commit dd3b90f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aiida/tools/data/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def _get_cif_ase_inline(struct, parameters):
kwargs = {}
if parameters is not None:
kwargs = parameters.get_dict()
cif = CifData(ase=struct.get_ase(**kwargs))
ase_structure = struct.get_ase(**kwargs) if isinstance(struct, LegacyStructureData) else struct.to_ase(**kwargs)
cif = CifData(ase=ase_structure)
formula = struct.get_formula(mode='hill', separator=' ')
for i in cif.values.keys():
cif.values[i]['_symmetry_space_group_name_H-M'] = 'P 1'
Expand Down

0 comments on commit dd3b90f

Please sign in to comment.