Skip to content

Sigfigs vs. uncertainty: integer interpretation is confusing #33

Description

@Splines

Currently

wiz.res("Test variable", 630, 15)

yields: TestVariable = 630.000000000000. This is due to the 15 being interpreted as number of significant figures. This is confusing as one might expect to get back TestVariable = 630 ± 15 as is the case for

wiz.res("Test variable", 630, 15.0)

We should somehow circumvent the first behavior, e.g. only allow passing in sigfigs via a named keyword, e.g. sigfigs=15. Maybe this can be achieved with plum somehow. It would also be great to completely disallow the mentioned usage but I'm not sure one can prevent users from not passing in an argument as keyword argument.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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