Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Feb 2, 2024
1 parent 3c567c1 commit 25d3988
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions openquake/hazardlib/geo/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,24 +386,6 @@ def get_tu(self, mesh):
:param mesh:
An instance of :class:`openquake.hazardlib.geo.mesh.Mesh`
"""

# all sites
lons = np.concatenate([mesh.lons, self.coo[:, 0]])
lats = np.concatenate([mesh.lats, self.coo[:, 1]])

# projection
west, east, north, south = utils.get_spherical_bounding_box(lons, lats)
proj = utils.OrthographicProjection(west, east, north, south)

# projected coordinates for the trace
tcoo = self.coo[:, 0], self.coo[:, 1]
txy = np.zeros_like(self.coo)
txy[:, 0], txy[:, 1] = proj(*tcoo)

# projected coordinates for the sites
sxy = np.zeros((len(mesh), 2))
sxy[:, 0], sxy[:, 1] = proj(mesh.lons, mesh.lats)

# Compute u hat and t hat for each segment. tmp has shape
# (num_segments x 3)
slen, uhat, that = self.get_tu_hat()
Expand Down

0 comments on commit 25d3988

Please sign in to comment.