Skip to content

Enhanced Images Initial Version #310

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

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

Conversation

zhang-yuanrui
Copy link
Collaborator

@zhang-yuanrui zhang-yuanrui commented Jun 12, 2025

In this PR, it supports enhanced images (aka, deep pixel images) from DPF models.

Currently, it supports both nodal and elemental data as variables. As there are some restrictions when displaying TIFF images with more than 3 pages, although building and storing such images is not a problem, plotting vector variables has to be divided into 3 separate steps (x, y and z).

Some known issues:

  1. Hardcoded part id.
  2. Single part only.

zhang-yuanrui and others added 30 commits October 4, 2024 14:59
…amicreporting into feat/yuanrui/enhanced_images
@zhang-yuanrui zhang-yuanrui requested a review from margalva June 12, 2025 19:28
@zhang-yuanrui zhang-yuanrui marked this pull request as ready for review June 12, 2025 19:40
@zhang-yuanrui zhang-yuanrui requested a review from viseshrp as a code owner June 12, 2025 19:40
@zhang-yuanrui zhang-yuanrui marked this pull request as draft June 12, 2025 19:41
@zhang-yuanrui zhang-yuanrui marked this pull request as ready for review June 16, 2025 19:09
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2025

Codecov Report

Attention: Patch coverage is 15.29412% with 144 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@e19f5f7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...sys/dynamicreporting/core/utils/enhanced_images.py 15.29% 143 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #310   +/-   ##
=======================================
  Coverage        ?   78.61%           
=======================================
  Files           ?       26           
  Lines           ?     7231           
  Branches        ?     1343           
=======================================
  Hits            ?     5685           
  Misses          ?     1126           
  Partials        ?      420           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@viseshrp
Copy link
Collaborator

@zhang-yuanrui Hey. Some of the existing files in the branch have been deleted, I'm assuming mistakenly. Also there are merge conflicts.

@zhang-yuanrui zhang-yuanrui marked this pull request as draft June 17, 2025 14:45
@zhang-yuanrui zhang-yuanrui force-pushed the feat/yuanrui/enhanced_images branch from fdda0ef to a8b6d9a Compare June 17, 2025 15:49
@zhang-yuanrui
Copy link
Collaborator Author

@zhang-yuanrui Hey. Some of the existing files in the branch have been deleted, I'm assuming mistakenly. Also there are merge conflicts.

@viseshrp Thank you for pointing it out. I did a reset and everything should be sync'ed now.

@zhang-yuanrui zhang-yuanrui marked this pull request as ready for review June 17, 2025 16:02
@viseshrp
Copy link
Collaborator

@zhang-yuanrui Also, please make sure project coverage is beyond 80% before merging. Thanks

HAS_VTK = True
except ImportError as e: # pragma: no cover
HAS_VTK = False
print(e)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can get rid of the print statements. If you do want the user to know, use logging.info or logging.warn

"pyvista==0.45.2",
"vtk==9.4.2",
"ansys-dpf-core==0.13.8",
]
test-extra = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is probably from the merge as well and needs to be reset.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@viseshrp No, it is intentional. I moved pyvista, vtk and ansys-dpf-core to "test"

Copy link
Collaborator

Choose a reason for hiding this comment

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

@zhang-yuanrui This was the original block in the main branch.

[project.optional-dependencies]
test = [
    "pytest>=8.3.3",
    "pytest-cov>=6.0.0",
]
test-extra = [
    "pyvista==0.45.2",
    "vtk==9.4.2",
    "ansys-dpf-core==0.13.8",
]

If you want to move everything in test-extra, remove test-extra completely.

"pyvista==0.45.2",
"vtk==9.4.2",
"ansys-dpf-core==0.13.8",
]
test-extra = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

@zhang-yuanrui This was the original block in the main branch.

[project.optional-dependencies]
test = [
    "pytest>=8.3.3",
    "pytest-cov>=6.0.0",
]
test-extra = [
    "pyvista==0.45.2",
    "vtk==9.4.2",
    "ansys-dpf-core==0.13.8",
]

If you want to move everything in test-extra, remove test-extra completely.

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.

3 participants