Skip to content

Commit

Permalink
Return NotImplemented -> Raise NotImplementedError
Browse files Browse the repository at this point in the history
  • Loading branch information
orionarcher committed Aug 28, 2024
1 parent ff44149 commit 902823d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/atomate2/ase/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def run_ase(
A previous calculation directory to copy output files from. Unused, just
added to match the method signature of other makers.
"""
return NotImplemented
raise NotImplementedError

@property
def calculator(self) -> Calculator:
"""ASE calculator, method to be implemented in subclasses."""
return NotImplemented
raise NotImplementedError


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/atomate2/ase/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _callback(dyn: MolecularDynamics = md_runner) -> None:
@property
def calculator(self) -> Calculator:
"""ASE calculator, to be overwritten by user."""
return NotImplemented
raise NotImplementedError


@dataclass
Expand Down

0 comments on commit 902823d

Please sign in to comment.