-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multimessenger Inference updates #262
Multimessenger Inference updates #262
Conversation
Bu2022Ye is only developed on a specific grid. The current prior exceeds the grid, thus it should be modified. Additionally, if no DOI can be assigned, now it will be set to the PERMANENTDOI by default.
Change priors for Bu2022Ye.prior
Previously, the GRB model did not get the filters passed down from the sampler. This is now fixed, additionally the GenericCombineLightCurveModel is introduced for the joint inference likelihood.
Pass filter to GRB model
@@ -369,7 +368,7 @@ def observation_angle_conversion(self, parameters): | |||
def generate_lightcurve(self, sample_times, parameters): | |||
if self.parameter_conversion: | |||
new_parameters = parameters.copy() | |||
new_parameters, _ = self.parameter_conversion(new_parameters, []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't the parameter_conversion for MMA takes not only the parameters dict but also the parameter keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my setup self.parameter_conversion points to MultimessengerConversion.convert_to_multimessenger_parameters
in joint/conversion.py line 468 and that function takes only the parameters as dict. i get an error when i leave the second argument there
nmma/joint/likelihood.py
Outdated
@@ -2,7 +2,7 @@ | |||
|
|||
import numpy as np | |||
|
|||
from ..em.model import SVDLightCurveModel, KilonovaGRBLightCurveModel | |||
from ..em.model import SVDLightCurveModel, KilonovaGRBLightCurveModel, GRBLightCurveModel, GenericCombineLightCurveModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove the importing of KilonovaGRBLightCurveModel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@haukekoehn Ready to merge? |
Some small changes that previously obstructed multimessenger inference.