Skip to content

Commit 2a9e663

Browse files
committed
BugFix: Do calc thermo for a species if it exists in self.species
when it's 'converged' value is non-determined (i.e., None)
1 parent 1c8be0e commit 2a9e663

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t3/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@ def determine_species_to_calculate(self) -> bool:
729729

730730
species_keys = list(set([key for key in species_keys if key is not None]))
731731

732-
additional_calcs_required = bool(len(species_keys))
732+
additional_calcs_required = bool(len(species_keys)) \
733+
or any(spc['converged'] is None for spc in self.species.values())
733734
self.logger.info(f'Additional calculations required: {additional_calcs_required}\n')
734735
if additional_calcs_required:
735736
self.logger.log_species_to_calculate(species_keys, self.species)
@@ -1042,7 +1043,8 @@ def species_requires_refinement(self, species: Species) -> bool:
10421043
bool: Whether the species thermochemical properties should be calculated. ``True`` if they should be.
10431044
"""
10441045
thermo_comment = species.thermo.comment.split('Solvation')[0]
1045-
if self.get_species_key(species=species) is None \
1046+
if (self.get_species_key(species=species) is None
1047+
or self.species[self.get_species_key(species=species)]['converged'] is None) \
10461048
and ('group additivity' in thermo_comment or '+ radical(' in thermo_comment):
10471049
return True
10481050
return False

0 commit comments

Comments
 (0)