Skip to content

Commit

Permalink
remove compute after numpy squeeze
Browse files Browse the repository at this point in the history
  • Loading branch information
valentina-s authored Sep 18, 2024
1 parent 3612948 commit a20012d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echoshader/echogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def convert_to_color(
) # threshold at the bottom
da_color = da_color.expand_dims("channel")
da_color = (da_color - th_bottom) / (th_top - th_bottom)
da_color = numpy.squeeze(da_color.Sv.data).transpose().compute()
da_color = numpy.squeeze(da_color.Sv.data).transpose()
return da_color


Expand Down

0 comments on commit a20012d

Please sign in to comment.