Skip to content

Adding different emission models#631

Open
lmauviard wants to merge 14 commits intoxpsi-group:mainfrom
lmauviard:powerlaw_model
Open

Adding different emission models#631
lmauviard wants to merge 14 commits intoxpsi-group:mainfrom
lmauviard:powerlaw_model

Conversation

@lmauviard
Copy link
Collaborator

@lmauviard lmauviard commented Dec 23, 2025

I implemented a framework to add any model to X-PSI, even ones that would need to be embedded in the metric. Such models can have parameters that are fitted alongside the usual models.

Alongside this, I provide a Powerlaw model, that can be pulsed or not. I managed to fit some data with this model. I can maybe add some other basics models if needed, such as a Gaussian or different pulsation definitions ?

Should I make a new notebook to explain it, or simply add a section to the Modeling/XPSI101 notebooks ?

Closes #625

@lmauviard lmauviard requested review from sguillot and thjsal December 23, 2025 14:08
@lmauviard lmauviard self-assigned this Dec 23, 2025
@lmauviard lmauviard marked this pull request as ready for review January 20, 2026 17:51
@lmauviard
Copy link
Collaborator Author

This PR has now a first version ready. Can some of you read the notebook and tell me what they think about it ? I fixed the issue I had and I can recover parameters quite nicely.


Added interface of the emission models to the ``Likelihood`` and ``Signal``.

Added a ``reset`` option to the Signal registration, which is by default ``True`` and execute the same as before. The option ``reset=False`` is useful for emission models. No newline at end of file
Copy link
Contributor

@thjsal thjsal Jan 24, 2026

Choose a reason for hiding this comment

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

Could you please describe what does the "reset" option do? If setting it to False, registering will add a new signal to the old one, instead of overwriting the old. Is that the idea? I am though still not sure why/how does it work.

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.

Remove part on Steffen interpolation in Modeling notebook

2 participants