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 active scalars and pass point data in to_tetrahedra for RectilinearGrid #4406

Merged
merged 4 commits into from
May 12, 2023

Conversation

MatthewFlamm
Copy link
Contributor

Overview

Closes #4394 by resetting active scalars.

Details

Additionally this PR finds that point data is also not transferred over even though the number of points is maintained. I don't think there is a downside to copying over the point data, so this will be added.

@github-actions github-actions bot added the bug Uh-oh! Something isn't working as expected. label May 10, 2023
@MatthewFlamm
Copy link
Contributor Author

Additionally this PR finds that point data is also not transferred over even though the number of points is maintained. I don't think there is a downside to copying over the point data, so this will be added.

It would be better now to use pass_data instead of pass_cell_data. Unfortunately we already released with pass_cell_data as an option.

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #4406 (b11be74) into main (461bb5e) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #4406      +/-   ##
==========================================
- Coverage   95.82%   95.75%   -0.07%     
==========================================
  Files          97       97              
  Lines       20874    20887      +13     
==========================================
- Hits        20002    20000       -2     
- Misses        872      887      +15     

@MatthewFlamm MatthewFlamm marked this pull request as ready for review May 10, 2023 19:37
@akaszynski
Copy link
Member

It would be better now to use pass_data instead of pass_cell_data. Unfortunately we already released with pass_cell_data as an option.

Let's just change it in this PR and deprecate the old one (safely). I agree that it makes more sense. I know that API changes are generally not considered for patch fixes, but if we safely deprecate, I think we're ok for this release since it's been out in the wild for less than a week.

@akaszynski akaszynski added this to the v0.39.1 milestone May 10, 2023
@MatthewFlamm
Copy link
Contributor Author

MatthewFlamm commented May 10, 2023

Let's just change it in this PR and deprecate the old one (safely). I agree that it makes more sense. I know that API changes are generally not considered for patch fixes, but if we safely deprecate, I think we're ok for this release since it's been out in the wild for less than a week.

This means we should ship this in a patch release quickly. Thanks for fixing the docstring, this also handles not including a specific deprecation warning section, which feels too heavy handed here given the quick deprecation.

@akaszynski
Copy link
Member

This means we should ship this in a patch release quickly.

Milestone for v0.39.1 is this Friday.

Copy link
Member

@akaszynski akaszynski left a comment

Choose a reason for hiding this comment

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

LGTM

@akaszynski akaszynski merged commit 4f5ff5a into main May 12, 2023
24 checks passed
@akaszynski akaszynski deleted the fix/scalars-rectilinear-to-tetra branch May 12, 2023 03:13
akaszynski added a commit that referenced this pull request May 16, 2023
…inearGrid` (#4406)

* add failing test

* fix active scalars for cell data

* pass point data, deprecate use of pass_cell_data

* document parameter

---------

Co-authored-by: Alex Kaszynski <akascap@gmail.com>
@akaszynski akaszynski mentioned this pull request May 16, 2023
3 tasks
akaszynski added a commit that referenced this pull request May 16, 2023
* Add PyHyperbolic3D as an external example (#4420)

* Add PyHyperbolic3D as an external example

* Reduce Gif file size

* Use 128 color

* optimize and scale

---------

Co-authored-by: Alex Kaszynski <akascap@gmail.com>

* Fix merge dataset (#4414)

* convert back to polydata using extact_geometry

* improved readability

* branch for performance

* add in verts

* revert #4407 into this branch

* Avoided omission of two letters.

---------

Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>

* Remove SKIP in docstrings (#4419)

* remove SKIPs

* remove the rest of skips

* minor fixes

* Fix active scalars and pass point data in `to_tetrahedra` for `RectilinearGrid` (#4406)

* add failing test

* fix active scalars for cell data

* pass point data, deprecate use of pass_cell_data

* document parameter

---------

Co-authored-by: Alex Kaszynski <akascap@gmail.com>

* Add gif extension to Sphinx-Gallery scraper (#4403)

* Add gif extension

* Reset cache

* Add test for GIFs

* Revert cache regeneration

* Fix test

* use cells for the example

---------

Co-authored-by: Alex Kaszynski <akascap@gmail.com>

* bump version to v0.39.1

---------

Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
Co-authored-by: MatthewFlamm <39341281+MatthewFlamm@users.noreply.github.com>
Co-authored-by: Alex Fernandez <21alex295@gmail.com>
@banesullivan banesullivan mentioned this pull request Jun 30, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh-oh! Something isn't working as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

to_tetrahedra active scalars
2 participants