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

partition #488

Draft
wants to merge 119 commits into
base: master
Choose a base branch
from
Draft

partition #488

wants to merge 119 commits into from

Conversation

joostvanzwieten
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@3aefeb6). Click here to learn what that means.
The diff coverage is 84.14%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #488   +/-   ##
========================================
  Coverage          ?     92%           
========================================
  Files             ?      23           
  Lines             ?   11188           
  Branches          ?       0           
========================================
  Hits              ?   10294           
  Misses            ?     894           
  Partials          ?       0
Impacted Files Coverage Δ
nutils/function.py 93.75% <100%> (ø)
nutils/topology.py 90.93% <76.68%> (ø)
nutils/element.py 86.95% <87.5%> (ø)
nutils/transformseq.py 97.09% <97.67%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3aefeb6...8017f8c. Read the comment docs.

@coveralls
Copy link

coveralls commented Mar 7, 2020

Coverage Status

Coverage decreased (-5.2%) to 87.176% when pulling 8017f8c on joostvanzwieten:partition into 3aefeb6 on evalf:master.

The multipatch topology is rather difficult to maintain in its current form
while transitioning to tensorial topologies. We simply disable the tests
involving multipatch topologies for now.
Bifurcate is being replaced by the new tensorial topologies approach. We
disable unittests involving bifurcate pending the replacement.
The tests for `function.Basis` make heavily use of parametrize. This has two
drawbacks: an exception raised while creating an argument, e.g. a transforms
sequence, makes the entire module not importable, and we can't create helper
variables for defining arguments unless we place them in the global scope. This
patch solves both problems by replacing parametrize with dedicated subclasses.
Currently a `transform.Identity` is a subclass of `transform.Shift`. In
`StructuredTransforms.index_with_tail` we test if the supplied transform chain
starts with a `transform.Shift` using `isinstance`, which gives a false
positive if the transform chain starts with `transform.Identity`. This patch
resolves this problem by replacing `isinstance(t, T)` with `type(t) == T`.
In the past transform chains had a special root transform item. This concept
does not exist anymore and we can safely remove `function.PopHead`.
`function.PopHead` was only used in `ApplyTransforms(PopHead(ndims,
SelectChain())`, where `SelectChain` is implicit. Since `function.SelectChain`
does not yet know the dimension of the root, we temporarily replace `PopHead`
with `TransformChainWithTodims`, with the sole purpose of defining the
`todims`. In a follow-up commit `function.SelectChain` will gain this knowledge
and `TransformChainWithTodims` will be removed in its entirety.
Now that we don't pop the head of a transform chain anymore, we can safely
remove the root transform item from `StructuredTransforms`.
In a future commit the transforms may have inhomogeneous `fromdims`. This patch
replaces all usage of the `fromdims` attribute.
The default implementation of `__bool__` tests whether the volume is strict
positive.  For trimmed elements this can be rather expensive.  This patch
adds specialized implementations of `__bool__` for all element types.
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.

4 participants