Skip to content

Commit

Permalink
Fix for capitalization in drivers' name
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Feb 10, 2023
1 parent 4626cf7 commit 5d7cec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ccinput/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(
else:
self.aux_name = aux_name
self.header = header
self.driver = driver
self.driver = driver.lower()
self.kwargs = kwargs

def verify_charge_mult(self):
Expand Down
4 changes: 2 additions & 2 deletions ccinput/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"orca": OrcaCalculation,
"xtb": XtbCalculation,
"pysis": PysisDriver,
"Pysisyphus": PysisDriver,
"pysisyphus": PysisDriver,
}


def process_calculation(calc):
if calc.driver in ["none", None, ""]:
if calc.driver in ["none", None, ""] or calc.driver == calc.parameters.software:
cls = SOFTWARE_CLASSES[calc.parameters.software](calc)
else:
cls = SOFTWARE_CLASSES[calc.driver](calc)
Expand Down

0 comments on commit 5d7cec9

Please sign in to comment.