Skip to content

Commit

Permalink
Numpy 0D array repr changed with v2.0 (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfebrer authored Jul 15, 2024
1 parent 8e32840 commit d03dd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sisl/viz/processors/orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_options(self, key, **kwargs):

def _repr(v):
if isinstance(v, np.ndarray):
v = list(v.ravel())
v = v.ravel().tolist()
if isinstance(v, dict):
raise Exception(str(v))
return repr(v)
Expand Down

0 comments on commit d03dd07

Please sign in to comment.