Skip to content

Commit

Permalink
Fix MPtoASEConverter when atoms is None (#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Dec 30, 2024
1 parent f314aad commit e857e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quacc/calculators/vasp/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def __init__(
if atoms is None and prev_dir is None:
raise ValueError("Either atoms or prev_dir must be provided.")
self.atoms = atoms
self.structure = AseAtomsAdaptor.get_structure(atoms) if self.atoms else None
self.prev_dir = prev_dir
self.structure = AseAtomsAdaptor.get_structure(atoms)

def convert_dict_set(self, dict_set: DictSet) -> dict:
"""
Expand Down

0 comments on commit e857e94

Please sign in to comment.