added set_constraints; made UB property

This commit is contained in:
gac-furka
2022-04-26 15:07:58 +02:00
parent 8d7f2a818a
commit 360f4de5ca

View File

@ -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...