Hi everyone. I would like to send a computed property from python to a speckle 2.0 stream. However, when I use the object below, the value for required_amount is not available on the server. Is there any way to fix this without declaring it in the init?
class Object(Base): def __init__(self, name: str = None, minimum_amount: float = 0, pshc: int = None, hc_factor: float = None): super().__init__() self.name = name self._minimum_amount = minimum_amount self._hc_factor = hc_factor self._pshc = pshc @property def required_amount(self): return max(self._minimum_amount, self._hc_factor * self._pshc)