Skip to content

Commit

Permalink
Update tropo_pyaps3.py
Browse files Browse the repository at this point in the history
In the get_snwe function within tropo_pyaps3.py, the original return (S, N, W, E) was returning S, N, W, and E as NumPy's np.int64 type, while the expected type was standard Python's int. Therefore, I modified the return statement to return (int(S), int(N), int(W), int(E)), which successfully fixed the problem.
  • Loading branch information
fukun364202818 authored Feb 14, 2025
1 parent 2dcccde commit 678e6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mintpy/tropo_pyaps3.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def floor2multiple(x, step=10):
W = floor2multiple(W, step=step)
N = ceil2multiple(N, step=step)
E = ceil2multiple(E, step=step)

return (S, N, W, E)
# modified by fukun 2025.2.14, return (S, N, W, E)->return (int(S), int(N), int(W), int(E))
return (int(S), int(N), int(W), int(E))


def get_bounding_box(meta, geom_file=None):
Expand Down

0 comments on commit 678e6bb

Please sign in to comment.