mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
CObs.gamma_method() works now when real or imag is 0
This commit is contained in:
parent
db71644e5a
commit
aa4c037e39
1 changed files with 4 additions and 2 deletions
|
@ -638,8 +638,10 @@ class CObs:
|
||||||
self.imag = imag
|
self.imag = imag
|
||||||
|
|
||||||
def gamma_method(self, **kwargs):
|
def gamma_method(self, **kwargs):
|
||||||
self.real.gamma_method(**kwargs)
|
if isinstance(self.real, Obs):
|
||||||
self.imag.gamma_method(**kwargs)
|
self.real.gamma_method(**kwargs)
|
||||||
|
if isinstance(self.imag, Obs):
|
||||||
|
self.imag.gamma_method(**kwargs)
|
||||||
|
|
||||||
def __add__(self, other):
|
def __add__(self, other):
|
||||||
if hasattr(other, 'real') and hasattr(other, 'imag'):
|
if hasattr(other, 'real') and hasattr(other, 'imag'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue