Skip to content

BUG: make conditional delta function available for condition - #1155

Open
ColmTalbot wants to merge 1 commit into
bilby-dev:mainfrom
ColmTalbot:conditional-delta-function-not-fixed
Open

ColmTalbot wants to merge 1 commit into
bilby-dev:mainfrom
ColmTalbot:conditional-delta-function-not-fixed

Conversation

@ColmTalbot

Copy link
Copy Markdown
Collaborator

Currently, we can't sample using a prior like the one below. There's always a way around this, but it feels more natural to not have to. As a concrete example I'm working with $p(\chi_{\rm eff} | q)$, $p(\chi_2 | \chi_{\rm eff}, q)$, $p(\chi_1 | \chi_{\rm eff}, \chi_2, q) = \delta(...)$, $p(\chi_{1, \perp} | \chi_1)$.

To work around it, I would need to add some new conversions.

a = Uniform(0, 1)
b = ConditionalDeltaFunction(... some condition that depends on a...)
c = ConditionalUniform(... some condition that depends on b...)

@GregoryAshton GregoryAshton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@mj-will
mj-will added this pull request to the merge queue Oct 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 19, 2026
Currently, we can't sample using a prior like the one below. There's always a way around this, but it feels more natural to not have to. As a concrete example I'm working with $p(\chi_{\rm eff} | q)$, $p(\chi_2 | \chi_{\rm eff}, q)$, $p(\chi_1 | \chi_{\rm eff}, \chi_2, q) = \delta(...)$, $p(\chi_{1, \perp} | \chi_1)$.

To work around it, I would need to add some new conversions.

```python
a = Uniform(0, 1)
b = ConditionalDeltaFunction(... some condition that depends on a...)
c = ConditionalUniform(... some condition that depends on b...)
```
@mj-will
mj-will force-pushed the conditional-delta-function-not-fixed branch from 35cb8a2 to 530fa42 Compare October 20, 2026 07:41
@mj-will
mj-will enabled auto-merge October 20, 2026 07:41

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants