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

Vectorize tex.catwitherror #303

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

martin-ueding
Copy link
Contributor

Closes #253.

I saw that by accident the changes to tex.catwitherror have made it mostly vectorized as the errors package already does it and the formatC is also vectorized. The problem were a few conditionals which assumed that the length of x and dx were one or alternatively x had two elements (value and error) and dx was missing. I have fixed the order of checks and added a few tests to make sure that it works even in cases where some of the errors were zero.

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.

tex.catwitherror does not work well with vectors
1 participant