8000 Error in multiplicationDirectiveTile · Issue #16 · geotrellis/maml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}
Error in multiplicationDirectiveTile #16
Open
@jbouffard

Description

@jbouffard

There is a chance for multiplicationDirectiveTile to fail in certain cases due to this line:

val scalarSum: Double = dbls.reduce(_ * _) + ints.reduce(_ * _)

The reason why this would be fail is that it is not possible to reduce an empty collection in Scala, so if either dbls or ints is empty then the method will fail.

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

      0