Skip to content

Commit

Permalink
Fix exception with numpy 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jun 30, 2022
1 parent ea54398 commit debaa2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Py6S/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __getattr__(self, name):
"""Executed when an attribute is referenced and not found. This method is overridden
to allow the user to access the outputs as ``outputs.variable`` rather than using the dictionary
explicity"""
if name == "__array_struct__":
if name == "__array_struct__" or name == "__array_interface__" or name == "__array__":
raise AttributeError()

# If there is a key with this name in the standard variables field then use it
Expand Down

0 comments on commit debaa2a

Please sign in to comment.