Skip to content

Conversation

@siddharthlal25
Copy link
Member

@siddharthlal25 siddharthlal25 commented Jul 4, 2020

Adding P92 model, we can mention this in #10!

@codecov
Copy link

codecov bot commented Jul 4, 2020

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f78e182) to head (30d848a).
⚠️ Report is 31 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #29   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          316       347   +31     
=========================================
+ Hits           316       347   +31     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@siddharthlal25 siddharthlal25 changed the title [WIP]: added P92 model Added P92 model Jul 9, 2020
@siddharthlal25
Copy link
Member Author

@mileslucas @giordano it would be really nice if you can review this!

@mileslucas
Copy link
Member

Also, you are missing an entry in the table in docs/src/index.md corresponding to the bibliography entry

Copy link
Member

@mileslucas mileslucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some comments about whether we should restructure the P92 struct, so if we go with that there'll be some changes, but otherwise this looks good to go if you bump the minor version and fix that docstring.

@icweaver icweaver mentioned this pull request Feb 13, 2025
10 tasks
@icweaver
Copy link
Member

Will be back for you ='(

abhro added a commit that referenced this pull request Dec 22, 2025
This is mostly to simplify the diff for PR #29
abhro added a commit that referenced this pull request Dec 22, 2025
This is mostly to simplify the diff for PR #29
@abhro
Copy link
Member

abhro commented Dec 22, 2025

Brought this PR up-to-date with the newer interface and implementation of DustExtinction.jl. Once the CI checks pass, this should be good to go! (Probably do a squash merge because wow the commit tree in tig is complicated, and a lot of it is just pulling things up-to-date.)
As for the interface about named tuples, this PR has been up since 2020, we can probably merge this now and then add a separate PR or some such thing to add a new interface for the P92 law at a later time?

@abhro abhro requested a review from icweaver December 22, 2025 17:33
Copy link
Member

@icweaver icweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up, Abhro! I've just left my minor formatting suggested edits + one science question

@abhro abhro requested a review from icweaver December 23, 2025 05:12
Copy link
Member

@icweaver icweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just following up from #29 (comment), tests look to be passing with the value from the paper. I tagged this in this current round of reviews. Otherwise this lgtm, thanks again for wrapping up this longstanding PR!

@abhro
Copy link
Member

abhro commented Dec 23, 2025

Hmm. The commit a93b178 seems to break the doctest, but I'm not sure where the original expected doctest output came from and how to validate it.

@icweaver
Copy link
Member

icweaver commented Dec 23, 2025

Right, that was just a partial suggestion in my above comment. The new value still needs to be updated in the docstring to match. Will take a look when back bu computer to see if anything deeper is going on

@icweaver
Copy link
Member

Interesting. It looks like Karl specifically changed the default from 0.08 to 0.07 back in 2018 as part of karllark/dust_extinction#50

I see he mentioned that an analytic tests was not being satisfied by this new change, and there looks to be another model fitting issue for P92 open since 2022. I haven't done any deeper digging, but I wonder if this might be related.

At any rate, I'm pushing the remaining changes back to the paper value of 0.08 now. I don't think there was anything particularly special about the doctest values that Siddharth used for the start of this PR

@icweaver
Copy link
Member

I'll also leave a ping in that repo to follow up

@abhro
Copy link
Member

abhro commented Dec 30, 2025

@icweaver Is this good to merge?

@icweaver
Copy link
Member

Absolutely. Thanks for these really nice changes!

@icweaver icweaver merged commit e4b3586 into JuliaAstro:master Dec 30, 2025
10 checks passed
@icweaver
Copy link
Member

icweaver commented Jan 17, 2026

I'll also leave a ping in that repo to follow up

Update: The value has been changed back to 0.08 in karllark/dust_extinction#266 as well, so I think we're all good here

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.

6 participants