Skip to content

Commit

Permalink
docs: update example of read_species (#2238)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Corrected a key in the `n_species` dictionary to ensure accurate data
retrieval.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
njzjz authored May 31, 2024
1 parent 8167e1a commit b102fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reacnetgenerator/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_species(
>>> from reacnetgenerator.tools import read_species
>>> import matplotlib.pyplot as plt
>>> step_idx, n_species = read_species('methane.species')
>>> plt.plot(step_idx, n_species['[H]C([H])([H])[H]'])
>>> plt.plot(step_idx, n_species['[H][C]([H])([H])[H]'])
>>> plt.savefig("methane.svg")
"""
step_idx = []
Expand Down

0 comments on commit b102fc1

Please sign in to comment.