Skip to content

Commit bfc18a4

Browse files
Update python/mrchem/api.py
Co-authored-by: Roberto Di Remigio Eikås <[email protected]>
1 parent 6dccdae commit bfc18a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/mrchem/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def write_molecule(user_dict, origin):
128128
"coords": mol.get_coords_in_program_syntax(),
129129
}
130130

131-
if (user_dict["WaveFunction"]["environment"].lower()).split("_")[0] == "pcm":
131+
if "pcm" in user_dict["WaveFunction"]["environment"].lower():
132132
mol_dict["cavity"] = {
133133
"spheres": mol.get_cavity_in_program_syntax(),
134134
}

0 commit comments

Comments
 (0)