Allow Parameter dependencies to be a callable #202
henrikjacobsenfys
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Making the dependency accept methods or functions is actually extremely complex and would add a lot of complexity to our code and by necessity also in our API. But your use-case is already covered by our current dependency-expression formulation if we simply add the sin function, so I also don't really see the use-case? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some of the more advanced diffusion models, I will need to create Lorentzians where the width depends on Q and some Parameters in fairly complex ways. One of the simpler ones that is already impossible is$\Gamma=\frac{6D}{L^2}(1 - \frac{sin(QL/pi)}{QL/pi})$ .
I think it would be a lot simpler for me to allow the dependency expression to be a function, or method if that is possible.
This would also simplify my code in other ways:
The questions are:
Beta Was this translation helpful? Give feedback.
All reactions