added set_constraints; made UB property
This commit is contained in:
@ -78,8 +78,14 @@ class QSpace3D(Device):
|
||||
def fit_ub(self, *args, **kwargs):
|
||||
self.dc.ub.fit_ub(*args, **kwargs)
|
||||
|
||||
@property
|
||||
def UB(self):
|
||||
self.dc.ub.UB
|
||||
self.dc.ub.UB
|
||||
|
||||
def set_constraints(self, **kwargs):
|
||||
for name, value in kwargs.items():
|
||||
setattr(self.dc.cons, name, value)
|
||||
|
||||
# if I understand the examples/code correctly, then some more method calls are mandatory?
|
||||
# those should probably all get shortcuts...
|
||||
|
||||
|
Reference in New Issue
Block a user