Skip to content

replace findn(A) with findall(!iszero, A) #83

@stevengj

Description

@stevengj

I notice that you are still using findn, which was deprecated in Julia 0.7 and removed in Julia 1.0 (JuliaLang/julia#25532) here:

is, js = findn(weights)

points = hcat( findn(ones(s,s,s))... );

You probably want to replace this with findall(!iszero, A), noting that findall returns a single array of CartesianIndex rather than two I, J arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions