CObs.gamma_method() works now when real or imag is 0

This commit is contained in:
Fabian Joswig 2021-10-17 11:34:53 +01:00
parent db71644e5a
commit aa4c037e39

View file

@ -638,8 +638,10 @@ class CObs:
self.imag = imag
def gamma_method(self, **kwargs):
self.real.gamma_method(**kwargs)
self.imag.gamma_method(**kwargs)
if isinstance(self.real, Obs):
self.real.gamma_method(**kwargs)
if isinstance(self.imag, Obs):
self.imag.gamma_method(**kwargs)
def __add__(self, other):
if hasattr(other, 'real') and hasattr(other, 'imag'):