Merge pull request #176 from lots-o/fix

Modify typo Q.63
This commit is contained in:
Nicolas P. Rougier 2022-04-02 16:55:14 +02:00 committed by GitHub
commit 566f976568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -829,7 +829,7 @@ class NamedArray(np.ndarray):
return obj
def __array_finalize__(self, obj):
if obj is None: return
self.info = getattr(obj, 'name', "no name")
self.name = getattr(obj, 'name', "no name")
Z = NamedArray(np.arange(10), "range_10")
print (Z.name)