jontymarshall / artefact

This is a small piece of code to calculate the dust emission from a dust disc around a star in the optically thin limit.
GNU General Public License v3.0
1 stars 1 forks source link

Allow make_star() to accept a function that generates photospheric spectra #4

Open pscicluna opened 3 years ago

pscicluna commented 3 years ago

If make_star() could feed input parameters to a function, as well as assuming a blackbody or reading from file, this would widen the range of stars that could be treated and be very handy for MCMC/Nested sampling/etc. It would also enable you to pass in a trained emulator from starfish if you wanted. This could be achieved either we adding an arbitrary callable as an optional input to the function, or (when the code is class-y) as part of the init() of the class.

jontymarshall commented 3 years ago

I'll take a look at starfish and see how it works - it'll be trivial to add a third keyword for the 'stype' parameter and have it delve into an emulated model from a function.