Skip to content

Commit

Permalink
Fix the ARCSpecies.include_in_thermo_lib arg assignment
Browse files Browse the repository at this point in the history
Assign always, not only if xyz is given
  • Loading branch information
alongd committed May 31, 2024
1 parent 6c23a05 commit e9f4ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,15 +1263,15 @@ def add_species(self,
xyzs.append(xyz_dict)
if len(xyzs):
if self.qm['adapter'] == 'ARC':
# Make qm_species and ARCSpecies instance to consider the xyz information
# Make qm_species an ARCSpecies instance to consider the xyz information
qm_species = ARCSpecies(label=qm_species.label,
rmg_species=qm_species,
xyz=xyzs,
include_in_thermo_lib=self.species_requires_refinement(qm_species),
)
else:
raise NotImplementedError(f"Passing XYZ information to {self.qm['adapter']} "
f"is not yet implemented.")
qm_species.include_in_thermo_lib = self.species_requires_refinement(qm_species)
self.qm['species'].append(qm_species)
return key

Expand Down

0 comments on commit e9f4ab9

Please sign in to comment.