Skip to content

Specify non-solar abundance patterns - #224

Open
clairekope wants to merge 5 commits into
trident-project:mainfrom
clairekope:uq-mod
Open

Specify non-solar abundance patterns#224
clairekope wants to merge 5 commits into
trident-project:mainfrom
clairekope:uq-mod

Conversation

@clairekope

Copy link
Copy Markdown

This PR allows users to specify alternative abundances for elements that are inferred from a general "metallicity" field. These abundances may be specified individually; if so, elements that are not specified during this override default to the previously used solar abundances.

fuhrmane and others added 5 commits June 3, 2026 10:39
reading_func_args accessed by SpectrumGenerator

changed some variable names bc I thought trident was confused but alas it is me who is confused (cue billy joel frog)

Change how we pass abundances heyo

Propogated changes to spec gen

Added abundance table args to ray generators

No method has_key :(

abundance_store not being set; attempt fix

abundance_store not being set; attempt fix

GLOBAL VARIABLES ARE DUMB

Let's be explicit with all our globals

beginning of final modifications

got ri of print statements and commented out parts of reading function I probably do not need anymore

some_rad_science is only commented out right now

I think she is finally done
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 0

Coverage increased (+0.08%) to 76.132%

Details

  • Coverage increased (+0.08%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 78 coverage regressions across 3 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

78 previously-covered lines in 3 files lost coverage.

File Lines Losing Coverage Coverage
/home/circleci/trident/trident/ion_balance.py 35 86.3%
/home/circleci/trident/trident/spectrum_generator.py 33 85.71%
/home/circleci/trident/trident/ray_generator.py 10 89.25%

Coverage Stats

Coverage Status
Relevant Lines: 2363
Covered Lines: 1799
Line Coverage: 76.13%
Coverage Strength: 0.76 hits per line

💛 - Coveralls

@chummels

chummels commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Hi @clairekope . Thanks for the PR. I'll take a more detailed look at this PR soon. I think in general, it is worthwhile functionality, but it seems like you touch a lot of code here, and I think this could be simplified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants