Skip to content

Commit c76cebe

Browse files
Handled case where solvent is null
1 parent 034c447 commit c76cebe

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ccinput/drivers/pysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def add_section(self, section):
101101
else:
102102
self.sections[section] = {}
103103
else:
104-
logger.warning(f"Duplicate specifications for section {section} were given")
104+
print(f"Duplicate specifications for section {section} were given")
105105

106106
def handle_specifications(self):
107107
s = self.clean(self.calc.parameters.specifications.lower())

ccinput/utilities.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ def get_solvent(solvent, software, solvation_model="smd"):
346346
return "octanol"
347347
# Note that ch2cl2 is a valid keyword for SMD, although not listed in the manual
348348

349+
if abs_solvent == "":
350+
return abs_solvent
351+
349352
return SOFTWARE_SOLVENTS[software][abs_solvent]
350353

351354

0 commit comments

Comments
 (0)