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

Improve dispatch mechanism #10

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

Conversation

gertjanvanzwieten
Copy link
Contributor

No description provided.

This patch removes the automatic parsing of string typed arguments in
multi-argument operations, and leaves only the division of a dimensional
quantity by a string that parses to the same dimension, so that the notation
can be used to unwrap a quantity and scale it to the desired reference.
This patch replaces the _dispatch method by a table based dispatch machanism,
for faster lookups and better defined work packages.
This patch removes the ability to multiply or divide a Dimension by a
non-Dimension, which is no longer in use since the introduction of the new
dispatch mechanism.
This patch removes the reference_quantity attribute of the Dimension
meta-class, the purpose of which is to be replaced by a new dispatch mechanism
for third party function calls.
This patch adds support for nutils functions via the new __nutils_function__
dispatch mechanism.
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #10 (4688316) into main (e3f818d) will decrease coverage by 1.06%.
The diff coverage is 91.80%.

@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
- Coverage   94.60%   93.54%   -1.06%     
==========================================
  Files           2        2              
  Lines         500      527      +27     
==========================================
+ Hits          473      493      +20     
- Misses         27       34       +7     
Flag Coverage Δ
unittests 93.54% <91.80%> (-1.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_SI.py 100.00% <ø> (ø)
nutils/SI.py 89.69% <91.80%> (-1.28%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

1 participant