Implement unit testing for covering missed updates such as this, in oneeloxidation.py:
while pKa < 20:
deprotomer_list = crest.deprotonate(currently_protonated, nproc=nproc)
if type(method) != XtbInput:
deprotomer_list = tools.reorder_energies(
deprotomer_list, nproc=nproc, method_opt=xtb, method_el=method, method_vib=xtb,
)
if deprotomer_list:
currently_deprotonated = deprotomer_list[0]
# if deprotonation is unsuccessful (e.g., topology change), save the molecule but with
# sentinel values for pKa (which cannot be calculated)
else:
mol_list.append([currently_protonated, None, None])
break
else:
mol_list.append([currently_protonated, None, None])
break
else:
currently_protonated.properties.pka[method.method] = None
mol_list.append(currently_protonated)
break