Skip to content

Commit

Permalink
Merge pull request #520 from thekester/numpyissuesolve
Browse files Browse the repository at this point in the history
Fix issues with numpy integration by replacing np.math.atan2 with np.…
  • Loading branch information
kvos authored Jul 26, 2024
2 parents 2c0ee7a + 5f9ab48 commit a0311b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coastsat/SDS_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def press(event):
phi = 0
deltax = pts_world[k+1,0] - pts_world[k,0]
deltay = pts_world[k+1,1] - pts_world[k,1]
phi = np.pi/2 - np.math.atan2(deltax, deltay)
phi = np.pi/2 - np.arctan2(deltax, deltay)
tf = transform.EuclideanTransform(rotation=phi, translation=pts_world[k,:])
pts_world_interp = np.append(pts_world_interp,tf(pt_coords), axis=0)
pts_world_interp = np.delete(pts_world_interp,0,axis=0)
Expand Down

0 comments on commit a0311b7

Please sign in to comment.