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

Fix deformation in fields container animate #582

Merged
merged 5 commits into from
Oct 26, 2022

Conversation

PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Oct 25, 2022

An error has been found in the computation of the deformation field.

@PProfizi PProfizi added the bug Something isn't working label Oct 25, 2022
@PProfizi PProfizi self-assigned this Oct 25, 2022
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #582 (616a693) into master (e5e2b91) will decrease coverage by 0.01%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master     #582      +/-   ##
==========================================
- Coverage   87.08%   87.06%   -0.02%     
==========================================
  Files          68       68              
  Lines        7455     7453       -2     
==========================================
- Hits         6492     6489       -3     
- Misses        963      964       +1     

@PProfizi PProfizi added this to the v0.6.2 milestone Oct 25, 2022
@PProfizi PProfizi changed the title Fix error in fields container animate Fix deformation error in fields container animate Oct 25, 2022
@PProfizi PProfizi changed the title Fix deformation error in fields container animate Fix deformation in fields container animate Oct 25, 2022
@@ -517,6 +517,11 @@ def animate(self, save_as=None, deform_by=None, scale_factor=1.0, **kwargs):
# Define the field extraction using the fields_container and indices
extract_field_op = dpf.core.operators.utility.extract_field(self)

loop_over = self.get_time_scoping()
frequencies = self.time_freq_support.time_frequencies
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PProfizi I don't understand this changes, it means that we can't animate if we don't have a time freq support?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbellot000 That was already the case, I just moved this up. Right now the animation is based on the TimeFreqSupport, yes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to add in the US to handle having no time freq support and to be able to create an animator with a mesh + a fields container

@PProfizi PProfizi merged commit d9113dc into master Oct 26, 2022
@PProfizi PProfizi deleted the fix/fields_container_animate branch October 26, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants