-
Notifications
You must be signed in to change notification settings - Fork 5
Add test for output #196
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
Merged
Merged
Add test for output #196
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
89642ce
Add test for output
jan-janssen d80ebe2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8d329b8
Add tests for chemical diversity
jan-janssen dd1536a
Merge remote-tracking branch 'origin/output' into output
jan-janssen f8935ea
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 477a8b8
try fix
jan-janssen 87da7ba
Merge remote-tracking branch 'origin/output' into output
jan-janssen a744981
refactor
jan-janssen 3173f77
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] cba3629
exclude version from coverage
jan-janssen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 4 | ||
| ITEM: BOX BOUNDS pp pp pp | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| ITEM: ATOMS id type xsu ysu zsu fx fy fz vx vy vz | ||
| 1 3 0 0 0 -2.77555756156289e-17 -1.38777878078145e-17 0 0 0 0 | ||
| 2 2 0 0.5 0.5 0 6.93889390390723e-17 -1.11022302462516e-16 0 0 0 | ||
| 3 2 0.5 0 0.5 0 6.93889390390723e-18 -8.32667268468867e-17 0 0 0 | ||
| 4 2 0.5 0.5 0 -5.55111512312578e-17 -1.66533453693773e-16 6.93889390390723e-17 0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 4 | ||
| ITEM: BOX BOUNDS pp pp pp | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| 0.0000000000000000e+00 4.0499999999999998e+00 | ||
| ITEM: ATOMS id type xsu ysu zsu fx fy fz vx vy vz | ||
| 1 2 0 0 0 0 6.93889390390723e-18 2.77555756156289e-17 0 0 0 | ||
| 2 2 0 0.5 0.5 5.55111512312578e-17 2.77555756156289e-17 -5.55111512312578e-17 0 0 0 | ||
| 3 3 0.5 0 0.5 0 6.93889390390723e-18 6.07153216591882e-18 0 0 0 | ||
| 4 1 0.5 0.5 0 2.77555756156289e-17 -8.32667268468867e-17 -5.55111512312578e-17 0 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ITEM: TIMESTEP | ||
| 0 | ||
| ITEM: NUMBER OF ATOMS | ||
| 4 | ||
| ITEM: BOX BOUNDS pp pp pp | ||
| 0.0000000000000000e+00 3.5200000000000000e+00 | ||
| 0.0000000000000000e+00 3.5200000000000000e+00 | ||
| 0.0000000000000000e+00 3.5200000000000000e+00 | ||
| ITEM: ATOMS id type xsu ysu zsu fx fy fz vx vy vz | ||
| 1 3 0 0 0 2.77555756156289e-17 -1.73472347597681e-18 0 0 0 0 | ||
| 2 1 0 0.5 0.5 -2.77555756156289e-17 -2.4980018054066e-16 1.11022302462516e-16 0 0 0 | ||
| 3 1 0.5 0 0.5 -1.11022302462516e-16 -9.0205620750794e-17 8.32667268468867e-17 0 0 0 | ||
| 4 1 0.5 0.5 0 1.11022302462516e-16 2.77555756156289e-16 -1.2490009027033e-16 0 0 0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Add test coverage for edge cases.
The function lacks test coverage for the 9-element case and error handling path. Consider adding test cases to cover:
The following lines need test coverage:
🏁 Script executed:
Length of output: 332
Action: Add comprehensive test cases for the
to_amatfunction.It looks like the function doesn’t have tests covering both the 9-element and error-handling paths. Please add tests to ensure:
ValueError.Consider updating the test suite to include these scenarios.
🧰 Tools
🪛 GitHub Check: codecov/patch
[warning] 142-142: pyiron_lammps/output.py#L142
Added line #L142 was not covered by tests
[warning] 158-158: pyiron_lammps/output.py#L158
Added line #L158 was not covered by tests