Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for arbitrary SFH to construct_x0_mdf #48

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Conversation

cgarling
Copy link
Owner

@cgarling cgarling commented Oct 5, 2024

By default construct_x0_mdf assumes a constant SFR. A new dispatch has been added to this method to support a user-provided cumulative SFH.

@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.50%. Comparing base (12e4975) to head (fba44f3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
+ Coverage   88.30%   88.50%   +0.19%     
==========================================
  Files          18       18              
  Lines        1497     1523      +26     
==========================================
+ Hits         1322     1348      +26     
  Misses        175      175              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

New method takes `cum_sfh = (cum_logAge, cum_vals)` and interpolates them onto the first `logAge` argument. This way you don't have to define your custom SFH on the same log(age) grid that you are using for your isochrones / templates.
@cgarling cgarling merged commit 4fde202 into main Oct 7, 2024
8 checks passed
@cgarling cgarling deleted the construct_x0 branch October 7, 2024 06:55
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.

2 participants