Skip to content

Commit

Permalink
Update speciation.py
Browse files Browse the repository at this point in the history
Backticks are needed to handle special characters in solvent names.
  • Loading branch information
orionarcher authored Aug 3, 2023
1 parent 8a1f2a9 commit 885b536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solvation_analysis/speciation.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _solvent_co_occurrence(self):
actual_solvents_list = []
for solvent in self.speciation_data.columns.values:
# calculate number of available coordinating solvent slots
shells_w_solvent = self.speciation_data.query(f'{solvent} > 0')
shells_w_solvent = self.speciation_data.query(f'`{solvent}` > 0')
n_solvents = shells_w_solvent.sum()
# calculate expected number of coordinating solvents
n_coordination_slots = n_solvents.sum() - len(shells_w_solvent)
Expand Down

0 comments on commit 885b536

Please sign in to comment.