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

Tecplot ascii data reader #2875

Merged
merged 9 commits into from
Jun 28, 2022
Merged

Tecplot ascii data reader #2875

merged 9 commits into from
Jun 28, 2022

Conversation

mechajeff
Copy link
Collaborator

Overview

This feature adds a Tecplot ascii .dat file reader. Tecplot is a common format for computational fluid dynamics and finite element model data.

Details

Adds Tecplot ascii format data files to the list of PyVista readers. The reader creates a MultiBlock data object of the information. A tecplot example file is included in vtk_data. A test was inclued in tests/utilites/test_reader.py

@github-actions github-actions bot added the enhancement Changes that enhance the library label Jun 26, 2022
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🚀 Thanks for opening your first pull request in PyVista! 🚀 Please make sure you read (skim 😉) our Contributing Guide and abide by our Code of Conduct.
A few things to keep in mind:

  • Remember to run the tests locally to make debugging issues easier.
  • If you need help writing tests, take a look at the existing ones for inspiration. If you do not know where to start, let @pyvista/developers know and we will walk you through it.
  • All new features should be documented. It helps to write the docstrings for your functions/classes before writing the code. This will help you think about your code design and results in better code.
  • No matter what, we are really grateful that you put in the effort to open this PR! ⭐

@codecov
Copy link

codecov bot commented Jun 27, 2022

Codecov Report

Merging #2875 (8c77291) into main (d3a51be) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2875      +/-   ##
==========================================
+ Coverage   94.03%   94.08%   +0.04%     
==========================================
  Files          76       76              
  Lines       16426    16428       +2     
==========================================
+ Hits        15447    15457      +10     
+ Misses        979      971       -8     

Copy link
Collaborator Author

@mechajeff mechajeff left a comment

Choose a reason for hiding this comment

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

Edit to reader.py TecplotReader class docstring.

Copy link
Member

@tkoyama010 tkoyama010 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! LGTM with small suggestions.

pyvista/examples/downloads.py Outdated Show resolved Hide resolved
pyvista/utilities/reader.py Outdated Show resolved Hide resolved
mechajeff and others added 2 commits June 26, 2022 22:41
Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
Co-authored-by: Tetsuo Koyama <tkoyama010@gmail.com>
Copy link
Collaborator Author

@mechajeff mechajeff left a comment

Choose a reason for hiding this comment

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

test updated and ASCII type corrected

tkoyama010
tkoyama010 previously approved these changes Jun 27, 2022
Copy link
Contributor

@MatthewFlamm MatthewFlamm left a comment

Choose a reason for hiding this comment

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

pyvista/_vtk.py Show resolved Hide resolved
@akaszynski
Copy link
Member

Also needs to be added to https://github.com/pyvista/pyvista/blob/main/doc/api/readers/index.rst#reader-classes

Added in a8e43fe. Sorted the lines as well.

@github-actions github-actions bot added the documentation Anything related to the documentation/website label Jun 27, 2022
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.

Good first PR. Thanks!

Copy link
Member

@tkoyama010 tkoyama010 left a comment

Choose a reason for hiding this comment

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

LGTM

@tkoyama010 tkoyama010 merged commit 5c230a2 into main Jun 28, 2022
@tkoyama010 tkoyama010 deleted the feat/tecplot_reader branch June 28, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything related to the documentation/website enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants