diff --git a/qspace.py b/qspace.py index 2a26b14..7d81741 100644 --- a/qspace.py +++ b/qspace.py @@ -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...