Skip to content

Set isoelectronic sequence to None when Z==charge_state#358

Merged
wtbarnes merged 2 commits intomainfrom
isoelectronic-seq-bugfix
Apr 22, 2025
Merged

Set isoelectronic sequence to None when Z==charge_state#358
wtbarnes merged 2 commits intomainfrom
isoelectronic-seq-bugfix

Conversation

@wtbarnes
Copy link
Owner

This fixes a bug where the isoelectronic sequence would try to be determined even in the case of a fully-ionized ion. An exception was being thrown by plasmapy because there is no Z=0 elemnt. These ions do not belong to an isoelectronic sequence so None is returned.

@wtbarnes wtbarnes added bugfix Fixes a bug. PRs with this label may be backported. backport 0.4 labels Apr 21, 2025
@wtbarnes wtbarnes merged commit de44315 into main Apr 22, 2025
14 checks passed
@wtbarnes wtbarnes deleted the isoelectronic-seq-bugfix branch April 22, 2025 02:58
meeseeksmachine pushed a commit to meeseeksmachine/fiasco that referenced this pull request Apr 22, 2025
wtbarnes added a commit that referenced this pull request Apr 22, 2025
…tate (#361)

Co-authored-by: Will Barnes <will.t.barnes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a bug. PRs with this label may be backported.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant