Skip to content

Conversation

@wbenoit26
Copy link
Contributor

@deepchatterjeeligo Is this what you had in mind for distributing p_astro across the categories?

@EthanMarx
Copy link
Contributor

Should we just move the entire p astro logic to the amplfi subprocess?

@wbenoit26
Copy link
Contributor Author

Probably, yeah. Let me try that.

@wbenoit26
Copy link
Contributor Author

I take it back, the reason to keep them separate is that we want the p_astro calculation and submission to run in parallel with the skymap creation submission to save time.

@EthanMarx
Copy link
Contributor

Okay got it - so then we should probably just trigger the pastro process (i.e. add to the pastro queue) from the amplfi process after the sampling is done

@wbenoit26
Copy link
Contributor Author

The way we have things set up makes that a little non-trivial to do without losing time. We'd either have to pass the samples between subprocesses, or wait until the file gets written in submit_low_latency_pe, which would also mean waiting for the corner plot to be created and submitted. Or we could add it to the p_astro queue from within submit_low_latency_pe, but it seems better to avoid that. I can try reworking things a little if we think it's worthwhile.

Copy link
Contributor

@deepchatterjeeligo deepchatterjeeligo left a comment

Choose a reason for hiding this comment

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

The current PR will be a functional implementation. There can be corner cases, which may make us rethink the order of the sub-processes. But this looks good to me as a first stab.

@EthanMarx
Copy link
Contributor

@wbenoit26 Why are we using detector frame masses?

@wbenoit26
Copy link
Contributor Author

@deepchatterjeeligo @EthanMarx With the config parameters corrected, the p_nsbh values that we get out of this look good. If one of you can review and approve, I'll merge this in, make a release, and start running over the LLPIC live

@wbenoit26
Copy link
Contributor Author

@wbenoit26 Why are we using detector frame masses?

See @deepchatterjeeligo's comment above

@wbenoit26
Copy link
Contributor Author

@EthanMarx @deepchatterjeeligo Could one of you review and approve?

@EthanMarx
Copy link
Contributor

Im confused why we're using detector frame masses? The search pipelines can get source frame masses, the templates measure a distance and then after assuming a cosmology you get a redshift

@deepchatterjeeligo
Copy link
Contributor

the templates measure a distance and then after assuming a cosmology you get a redshift

No because the template have an effective distance, not the luminosity distance that is needed to back out the redshift.

@EthanMarx
Copy link
Contributor

Regardless, we are able to get the source frame mass so why would we not use it? This is exactly what bilby does when they update the p_astro.

Copy link
Contributor

@deepchatterjeeligo deepchatterjeeligo left a comment

Choose a reason for hiding this comment

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

Looks good to me. I understand this is difficult to test aside from a live environment. Has that been done, on the O3 MDC maybe? If not that's OK, happy to merge this and sort out the kinks.

@deepchatterjeeligo
Copy link
Contributor

@EthanMarx that's correct, but it is a separate discussion. Our goal with this is to be compatible with the definition of the p-astro from other CBC pipelines.

@wbenoit26
Copy link
Contributor Author

I've tested with the offline-online code, which should match all the online functionality. But I think it would be good to test on the O3 MDC data for a little while and make sure that everything goes through. I can do that today.

@deepchatterjeeligo
Copy link
Contributor

I think the source frame vs det frame p-astro is a good point to ask allsky about. Obviously, the better definition is the source frame version.

@wbenoit26
Copy link
Contributor Author

@deepchatterjeeligo I asked at the all-sky call this morning, and it sounds like the matched filtering pipelines have some kind of method to reconstruct the redshift from the effective distance, so they do their p_astro calculation with source frame masses. I'm going to switch back to using source frame masses here.

@wbenoit26
Copy link
Contributor Author

I've been running over the O3 MDC today and haven't encountered any issues. Merging this and making a release that I'll start on LLPIC tomorrow.

@wbenoit26 wbenoit26 merged commit c1fd371 into ML4GW:main Sep 30, 2025
5 checks passed
@wbenoit26 wbenoit26 deleted the distribute-pastro branch September 30, 2025 00:15
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.

3 participants