Domingos Rodrigues
2011-09-18 20:55:02 UTC
Hi,
First of all thanks for this excellent piece of code. It really saves time
to set up interfaces to
simulation codes. One recurrent problem I have is to set interdependencies
among
dataitems of the same dataset, something along the lines:
class Examplo(DataSet):
_bg = BeginGroup(" ... ")
...
*_eleatm* = GetAttrProp("Potential_Num")
Potential_Num = IntItem(u"Potential_Num",
default = None,
help = u"") # valid for Martins_old and FHIPP
Electron_Per_orbital = FloatArrayItem(u"Electron_Per_orbital",
default = np.zeros((1, *_eleatm*),
float),
help=u"")
...
_end = EndGroup("...")
Obviously the code above does not work. Is there any workaround?
The interdependencies are meant to be instantaneous in the sense that
changing one parameter affects the other simultaneously. Is this possible?
Thanks a lot.
First of all thanks for this excellent piece of code. It really saves time
to set up interfaces to
simulation codes. One recurrent problem I have is to set interdependencies
among
dataitems of the same dataset, something along the lines:
class Examplo(DataSet):
_bg = BeginGroup(" ... ")
...
*_eleatm* = GetAttrProp("Potential_Num")
Potential_Num = IntItem(u"Potential_Num",
default = None,
help = u"") # valid for Martins_old and FHIPP
Electron_Per_orbital = FloatArrayItem(u"Electron_Per_orbital",
default = np.zeros((1, *_eleatm*),
float),
help=u"")
...
_end = EndGroup("...")
Obviously the code above does not work. Is there any workaround?
The interdependencies are meant to be instantaneous in the sense that
changing one parameter affects the other simultaneously. Is this possible?
Thanks a lot.