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

Provide methods to access value, unit etc. in Python code #28

Open
Splines opened this issue Mar 25, 2024 · 0 comments · May be fixed by #56
Open

Provide methods to access value, unit etc. in Python code #28

Splines opened this issue Mar 25, 2024 · 0 comments · May be fixed by #56
Assignees
Labels
idea An idea for a new feature

Comments

@Splines
Copy link
Collaborator

Splines commented Mar 25, 2024

In Python code, it might be useful to do something like this:

import resultwizard as wiz

my = wiz.res("Important", 3.14, 0.02, "\J")

# then somewhat later in the code
print(my.value)
print(my.uncertainty)

Similar to what we already provide to LaTeX (e.g. \resultImportant[value]), we could also provide an API for the python code.

@Splines Splines added the idea An idea for a new feature label Mar 28, 2024
@paul019 paul019 linked a pull request Aug 7, 2024 that will close this issue
@paul019 paul019 self-assigned this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea An idea for a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants