Replies: 6 comments 11 replies
-
from @swhite2401:
|
Beta Was this translation helpful? Give feedback.
-
from @JeanLucPons:
def set_field(value):
amagnet.strength.set(value)
def get_field():
return amagnet.strength.get()
def hook():
do something
var = CustomVariable(set_field, get_field, hook, delta=1.0e-6)
|
Beta Was this translation helpful? Give feedback.
-
from @lfarv/
|
Beta Was this translation helpful? Give feedback.
-
For the matching, there is something that is a bit annoying: it is required to provide a ring when building variables to set their initial values, otherwise they are set to None and matching function fails. However, ring is also required as input to the matching function, in case initial values are None, couldn't we just use the Lattice object provided for the matching function to initialize all variables and observables? |
Beta Was this translation helpful? Give feedback.
-
I find it very annoying to have to input ring every time an evaluate/get/set function is called, can we find a way to optionally store the lattice somewhere (maybe when initializing the object?) in case we would like to simplify the syntax? |
Beta Was this translation helpful? Give feedback.
-
#974 is open an implements some of the points discussed here.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion follow a mail exchange about possible improvements to the response matrix computations. The idea is to get a specification for useful additions.
Beta Was this translation helpful? Give feedback.
All reactions