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/read write modes #122

Merged
merged 6 commits into from
Oct 6, 2023
Merged

Fix/read write modes #122

merged 6 commits into from
Oct 6, 2023

Conversation

chrpetre
Copy link
Collaborator

@chrpetre chrpetre commented Oct 5, 2023

this PR implements changes to use numpy for

  • read/write binary files (snapshots, svd basis,...)
  • read settings file and associated named selection ids
  • modify the examples to show more performant code for reading binary files
    @EDCarman FYI

- refactor reading/writing functions of binary files and settings file
- adapt the different examples accordingly
@github-actions github-actions bot added the bug Something isn't working label Oct 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2023

Codecov Report

Merging #122 (2b90db9) into main (4897685) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
- Coverage   88.86%   88.80%   -0.06%     
==========================================
  Files          11       11              
  Lines        2334     2322      -12     
==========================================
- Hits         2074     2062      -12     
  Misses        260      260              

Copy link
Collaborator

@lboucin lboucin left a comment

Choose a reason for hiding this comment

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

GREAT one @chrpetre! Didn't know the np.fromfile(...). Thanks!

Copy link
Collaborator

@EDCarman EDCarman left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple of comments.

src/ansys/pytwin/evaluate/tbrom.py Outdated Show resolved Hide resolved
src/ansys/pytwin/evaluate/tbrom.py Outdated Show resolved Hide resolved
src/ansys/pytwin/evaluate/tbrom.py Show resolved Hide resolved
@chrpetre chrpetre requested a review from EDCarman October 5, 2023 17:16
@chrpetre
Copy link
Collaborator Author

chrpetre commented Oct 5, 2023

thanks for the detailed review @EDCarman, these should be addressed

@chrpetre chrpetre merged commit bfe9283 into main Oct 6, 2023
22 checks passed
@chrpetre chrpetre deleted the fix/read_write_modes branch October 6, 2023 07:29
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.

4 participants