Skip to content

Commit

Permalink
delete duplicate module common.py (same as utils.py), fix TypeError: …
Browse files Browse the repository at this point in the history
…'property' object is not subscriptable
  • Loading branch information
janosh committed May 17, 2024
1 parent cc932c8 commit 0fe29d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 293 deletions.
2 changes: 1 addition & 1 deletion pymatgen/io/vasp/sets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def from_prev_calc(cls, prev_calc_dir: str, **kwargs) -> Self:
and prev_structure and prev_kpoints which are determined from
the prev_calc_dir.
"""
input_set = cls(**kwargs)
input_set = cls(structure=None, **kwargs)
return input_set.override_from_prev_calc(prev_calc_dir=prev_calc_dir)

def __str__(self) -> str:
Expand Down
292 changes: 0 additions & 292 deletions pymatgen/io/vasp/sets/common.py

This file was deleted.

0 comments on commit 0fe29d7

Please sign in to comment.