You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your work writting the tool that calculates the sweights. However I think the user might not need the weights in an array but as a function. At the end the sWeights are just a 1D function of the mass. So what I think should happen is more like:
fun=Function.load('swt_v1.json')
#For one mass valuewgt=fun(5202)
# or if you need the whole arrayarr_wgt=fun([2464, 4564, 4945])
that way you would be able to keep around in disk many versions of the sweights (from different fitting models, for instance) and load them whenever you need them. I implemented a Function class in:
Hi,
Thanks for your work writting the tool that calculates the sweights. However I think the user might not need the weights in an array but as a function. At the end the sWeights are just a 1D function of the mass. So what I think should happen is more like:
that way, if you need those weights you do:
that way you would be able to keep around in disk many versions of the sweights (from different fitting models, for instance) and load them whenever you need them. I implemented a
Function
class in:https://github.com/acampove/dmu/blob/main/src/dmu/stats/function.py
https://github.com/acampove/dmu/blob/main/tests/stats/test_function.py
feel free to pick up what you need from the code.
The text was updated successfully, but these errors were encountered: