Skip to content
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

Calling mosfit models as functions. #192

Open
nikhil-sarin opened this issue Jun 22, 2021 · 0 comments
Open

Calling mosfit models as functions. #192

nikhil-sarin opened this issue Jun 22, 2021 · 0 comments

Comments

@nikhil-sarin
Copy link

Hi. New user here.

Is there a way to evaluate a mosfit model as a function? I tried digging into the code but I can't figure out how to isolate the various modules/classes.

To elaborate, say if I want to evaluate the SLSN model. I can just do something like

import mosfit
model = mosfit.model('slsn')
model.evaluate(time, bands, **params)

Here time is an array of observation times, bands is an array of bands corresponding to the observation times and params is a dictionary of parameters corresponding to the SLSN model. The documentation suggests a workflow that is quite close but I don't actually want to load an observation and the associated array of data.

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

No branches or pull requests

1 participant