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

Keep TimeType precision if they are used in Expressions #546

Merged
merged 11 commits into from Aug 11, 2020

Conversation

terrorfisch
Copy link
Member

@terrorfisch terrorfisch commented Aug 6, 2020

Before this PR Rational objects in sympy expressions where evaluated as floats upon numeric evaluation. This PR adds ScalarExpression.evaluate_with_exact_rationals which is used for example in TablePT and FunctionPT to evaluate time expressions.

  • Tests for TimeType._try_from_any

@coveralls
Copy link

coveralls commented Aug 6, 2020

Pull Request Test Coverage Report for Build 2202

  • 70 of 75 (93.33%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 84.449%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qupulse/utils/sympy.py 22 23 95.65%
qupulse/utils/types.py 39 43 90.7%
Totals Coverage Status
Change from base Build 2175: 0.06%
Covered Lines: 6382
Relevant Lines: 7430

💛 - Coveralls

@terrorfisch terrorfisch mentioned this pull request Aug 11, 2020
@terrorfisch terrorfisch merged commit 41e32cb into master Aug 11, 2020
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.

None yet

2 participants