Skip to content

Commit 5b7d7e9

Browse files
committed
evaluate result
1 parent 43938e7 commit 5b7d7e9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pyat/at/latticetools/observables.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(self, fun, statfun):
8686
self.statfun = statfun
8787

8888
def __call__(self, *a):
89-
return self.statfun(self.fun(*a))
89+
return self.statfun(self.fun(*a), axis=0)
9090

9191

9292
class _ArrayAccess:
@@ -339,10 +339,6 @@ def weight(self):
339339
"""Observable weight."""
340340
return np.broadcast_to(self.w, np.asarray(self._value).shape)
341341

342-
@weight.setter
343-
def weight(self, w):
344-
self.w = w
345-
346342
@property
347343
def weighted_value(self):
348344
"""Weighted value of the Observable, computed as

0 commit comments

Comments
 (0)