Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mobiusklein committed Nov 26, 2023
1 parent be03f26 commit 9ec0bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brainpy/_c/composition.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ cdef void _isotopes_of(char* element_symbol, IsotopeMap** isotope_frequencies):

for i, mass_freqs in element_data.items():
if i == 0:
if isinstance(mass_freqs, int):
if isinstance(mass_freqs[0], int):
mono_neutrons = PyInt_AsLong(mass_freqs[0])
continue
if mass_freqs[1] > 0:
Expand Down

0 comments on commit 9ec0bb1

Please sign in to comment.