Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored May 16, 2024
1 parent 61bac82 commit 63b3724
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reacnetgenerator/_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ def _printtable(self, allroute, timeaxis=None):
if all(reactionnumber >= 0):
table[tuple(reactionnumber)] = n_reaction

species_idx = pd.Index(species)
df = pd.DataFrame(
table[: len(species), : len(species)],
index=species,
columns=species, # type: ignore
index=species_idx,
columns=species_idx,
)
df.to_csv(
self.tablefilename
Expand Down

0 comments on commit 63b3724

Please sign in to comment.