Skip to content

Pedantic use of floats necessary? #1706

Description

@jwboth

When defining fractures (or other lengths and coordinates) which shall be rescaled by unit conversion, it is necessary to define them as array of floats and not array of integers. Otherwise, an error is thrown:

Image

Simple redefinition of the unit conversion in the style value = value / factor instead of value /= factor should do the job robustly.

Is there any (safety) reason why one would want to be type safe here? Or would the user-experience be improved by relaxing the safety here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions