Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions casm/project/enum/_ConfigSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def calculated_structure_with_properties(self) -> Optional[xtal.Structure]:
"""
calc_dir = self.calc_dir
if calc_dir is None:
return False
return None

structure_file = calc_dir / "structure_with_properties.json"
if not structure_file.exists():
Expand Down Expand Up @@ -1314,7 +1314,7 @@ def select(self, name: str):
"""
record = self.get(name)
if record is not None:
record.selected = True
record.set_selected(True)
else:
raise ValueError(f"Configuration '{name}' not found in selection.")

Expand Down Expand Up @@ -1371,7 +1371,7 @@ def deselect(self, name: str):
"""
record = self.get(name)
if record is not None:
record.selected = False
record.set_selected(False)
else:
raise ValueError(f"Configuration '{name}' not found in selection.")

Expand Down
Loading