Skip to content

Commit

Permalink
Fix 0.7.0 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBlackwell committed Aug 8, 2018
1 parent 448ed7e commit 3bafd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EchogramImages.jl
Expand Up @@ -64,7 +64,7 @@ function imagesc(A;

n = length(color)

g = x -> (clamp(isnan(x)? vmin : x, vmin, vmax) - vmin) / (vmax - vmin)
g = x -> (clamp(isnan(x) ? vmin : x, vmin, vmax) - vmin) / (vmax - vmin)
f = s->clamp(round(Int, (n-1)*g(s))+1, 1, n)

Ai = mappedarray(f, A) # like f.(A) but does not allocate significant memory
Expand Down

0 comments on commit 3bafd21

Please sign in to comment.