mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 12:32:40 +02:00
making observables accessable
This commit is contained in:
parent
22e4f8a1e8
commit
04a889b3a9
7 changed files with 45 additions and 59 deletions
|
|
@ -25,7 +25,7 @@ class ObsAr(np.ndarray, Pickleable, Observable):
|
|||
def __array_finalize__(self, obj):
|
||||
# see InfoArray.__array_finalize__ for comments
|
||||
if obj is None: return
|
||||
self._observer_callables_ = getattr(obj, '_observer_callables_', None)
|
||||
self.observers = getattr(obj, 'observers', None)
|
||||
|
||||
def __array_wrap__(self, out_arr, context=None):
|
||||
return out_arr.view(np.ndarray)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue