Skip to content

Commit

Permalink
Merge branch 'main' into shipgen-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeBell committed Mar 5, 2025
2 parents 968cbac + cc38025 commit e685ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Raytrace/SideScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def process_raw(self) -> None:

ldist = norm - (np.arange(0,1,1/self.result_reselution) + 0.5/self.result_reselution).reshape((-1,1))
smooth_val = self.smooth_dist / (self.max_dist - self.min_dist)
lval = np.pow(np.maximum(0, np.square(smooth_val) - np.square(ldist)),3) / (32/35*smooth_val**7) / len(self.raw.distances)
lval = (np.maximum(0, np.square(smooth_val) - np.square(ldist))**3) / (32/35*smooth_val**7) / len(self.raw.distances)

self.result = np.sum(lval, axis = 1)
np.seterr(**old_error_state)
Expand Down

0 comments on commit e685ab2

Please sign in to comment.