Open
Conversation
… if you're doing imaging data stuff
Owner
|
@amn3142 I just push some changes to the main branch that implement the features in the pull request, let me know what you think. The compute_likelihoods function now returns the imaging likelihood, flux ratio likelihood, and then (parameters, weights), meaning it returns one fewer argument than before |
Contributor
Author
|
Exciting!
Questions:
1) Do you still want the if statement on line 87?
2) If you go back to the bootstrap method, is there any benefit for computing pdf_imgdata multiple times? If not, I would take it out of the for loop.
The output makes sense to me.
Anna
On Jul 23, 2025, at 7:32 PM, Daniel Gilman ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/15677070?s=20&v=4]dangilman left a comment (dangilman/samana#16)<#16 (comment)>
@amn3142<https://github.com/amn3142> I just push some changes to the main branch that implement the features in the pull request, let me know what you think. The compute_likelihoods function now returns the imaging likelihood, flux ratio likelihood, and then (parameters, weights), meaning it returns one fewer argument than before
—
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEA6XOUGOCUGWUQJ5FDEGJT3KBAVFAVCNFSM6AAAAACCEG2HG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMJRG42TCMRSG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
…--------------------------------------------
Anna M. Nierenberg
Assistant Professor
Department of Physics, UC Merced
annanierenberg.com
|
Owner
|
@amn3142 I think it's ok to keep the if statement there for backwards compatibility. And the imaging data stuff is inside the if boostrap_index == 0: statement, so it will only get computed once on the first pass through the for loop |
Contributor
Author
|
Got it!! Sorry I missed that.
On Jul 23, 2025, at 7:44 PM, Daniel Gilman ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/15677070?s=20&v=4]dangilman left a comment (dangilman/samana#16)<#16 (comment)>
@amn3142<https://github.com/amn3142> I think it's ok to keep the if statement there for backwards compatibility. And the imaging data stuff is inside the if boostrap_index == 0: statement, so it will only get computed once on the first pass through the for loop
—
Reply to this email directly, view it on GitHub<#16 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEA6XOWVSNSTCPXW2UZAO3D3KBB73AVCNFSM6AAAAACCEG2HG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMJRG43DMMZUGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
…--------------------------------------------
Anna M. Nierenberg
Assistant Professor
Department of Physics, UC Merced
annanierenberg.com
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2 main changes:
This speeds up the calculation: first if we don't have imaging data it doesn't do the densitysamples estimate for the array of ones, second, it only calculates the imaging data likelihood one time and not n-bootstraps times.
Now can take a covariance matrix. Sending an email for how to estimate the covariance matrix. Haven't tested that this works properly TBH.