Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new wiz.res() API #41

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Implement new wiz.res() API #41

wants to merge 6 commits into from

Conversation

Splines
Copy link
Collaborator

@Splines Splines commented Apr 11, 2024

This fixes #33 and implements the new proposal for the wiz.res() API.

Even though it's not in the scope of this PR, we fix small errors, see 6ef4c44.

For reviewers

  • As plum was removed as dependency, you may want to run pipenv install again to uninstall it on your local machine as well.

@Splines Splines self-assigned this Apr 11, 2024
@Splines Splines marked this pull request as ready for review April 11, 2024 17:49
@Splines Splines requested a review from paul019 April 11, 2024 17:49
sigfigs: Union[int, None] = None,
decimal_places: Union[int, None] = None,
) -> PrintableResult:
return res(name, value, [(sys, "sys"), (stat, "stat")], unit, sigfigs, decimal_places)
):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you not return PrintableResult anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do return it in line 94. Make sure to check out the code locally to see the new contents.
It's just the GitHub diff that shows this in a weird way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paul019 Did you find the statement?

This was referenced Apr 12, 2024
@Splines Splines requested a review from paul019 April 12, 2024 21:38
@Splines Splines mentioned this pull request Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sigfigs vs. uncertainty: integer interpretation is confusing
2 participants