Skip to content

Commit

Permalink
fix COSMO-RS for non-fine ctd and cosmors-fine
Browse files Browse the repository at this point in the history
  • Loading branch information
fabothch committed Feb 2, 2021
1 parent b290fcf commit 806234d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions censo_qm/inputhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ def cml(startup_description, options, argv=None):
required=False,
action="store",
choices=options.value_options["cosmorsparam"],
metavar="",
help="Choose a COSMO-RS parametrization for possible COSMO-RS G_solv "
"calculations: e.g. 19-normal for 'BP_TZVP_19.ctd' or 16-fine for"
" 'BP_TZVPD_FINE_C30_1601.ctd'.",
Expand Down
13 changes: 5 additions & 8 deletions censo_qm/tm_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,11 @@ def _cosmors(self):
and "1201" not in self.job["cosmorssetup"]
and "1301" not in self.job["cosmorssetup"]
):
self.job["cosmorssetup"].replace("BP_TZVP", "BP_TZVPD_FINE")
if "FINE" not in self.job["cosmorssetup"] and (
"1201" in self.job["cosmorssetup"]
or "1301" in self.job["cosmorssetup"]
):
self.job["cosmorssetup"].replace(
"BP_TZVP", "BP_TZVPD_FINE_HB2012"
)
self.job["cosmorssetup"] = self.job["cosmorssetup"].replace("BP_TZVP", "BP_TZVPD_FINE")
elif "FINE" not in self.job["cosmorssetup"] and "1201" in self.job["cosmorssetup"]:
self.job["cosmorssetup"] = self.job["cosmorssetup"].replace("BP_TZVP", "BP_TZVPD_FINE_HB2012")
elif "FINE" not in self.job["cosmorssetup"] and "1301" in self.job["cosmorssetup"]:
self.job["cosmorssetup"] = self.job["cosmorssetup"].replace("BP_TZVP", "BP_TZVPD_FINE_HB2012")
elif self.job["cosmorsparam"] == "normal":
if "FINE" in self.job["cosmorssetup"]:
## normal cosmors
Expand Down

0 comments on commit 806234d

Please sign in to comment.