Skip to content

Commit

Permalink
got wront error code: 999 instead of 499
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Aschwanden committed Dec 19, 2023
1 parent 1739a9b commit 9b5c17b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pypism/extract_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def read_subset(t=0, z=0):
index.append(indexes[dim])
except KeyError:
index.append(Ellipsis)
return variable[*index] # noqa: E499
return variable[*index] # noqa: E999

n_points = len(profile.x)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_extract_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def T(x):
if "z" in dimensions:
for k in range(Mz):
indexes[dimensions.index("z")] = k
variable[*indexes] = T(F(xx, yy, z[k])) # noqa: E499
variable[*indexes] = T(F(xx, yy, z[k])) # noqa: E999
else:
variable[*indexes] = T(F(xx, yy, 0))

Expand Down

0 comments on commit 9b5c17b

Please sign in to comment.