Skip to content

Commit

Permalink
Accept "None" as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Oct 3, 2023
1 parent 865cd71 commit 603cc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jitterbug/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def make_calculator(method: str, basis: Optional[str], **kwargs) -> Calculator:
"""

if method in mopac_methods:
if basis is not None:
if not (basis is None or basis == "None"):
raise ValueError(f'Basis must be none for method: {method}')
return MOPAC(method=method, command='mopac PREFIX.mop > /dev/null')
else:
Expand Down

0 comments on commit 603cc3a

Please sign in to comment.