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

changed the generic cells property #1379

Merged
merged 5 commits into from
Apr 17, 2024
Merged

Conversation

skatnagallu
Copy link
Contributor

Changed the cells property to repeat based on number of steps to fix issue #1378

@skatnagallu skatnagallu linked an issue Apr 12, 2024 that may be closed by this pull request
@skatnagallu
Copy link
Contributor Author

Unittest fails with AttributeError: energy_free. I am not sure why

@freyso
Copy link
Contributor

freyso commented Apr 16, 2024

I think this approach is suboptimal.

The relaxHist.sx output replicates the cell, so it should be parsable (and it actually seems to be parsed into "output.cell" rather than ...".cells" (with s), see sphinx/output_parsers.py lines 192-196. I'd rather rename the parsing target in the parser, because then we would be ready for future implementations of automatic cell optimization.

@samwaseda
Copy link
Member

Based on @freyso's comment, I suggest to copy generic.cell, which will probably also solve the problem with CI

using self.generic.cell

Co-authored-by: Sam Dareska <37879103+samwaseda@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Apr 17, 2024

Pull Request Test Coverage Report for Build 8720068328

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 93.209%

Files with Coverage Reduction New Missed Lines %
pyiron_atomistics/init.py 1 97.92%
Totals Coverage Status
Change from base Build 8572185654: 0.01%
Covered Lines: 14275
Relevant Lines: 15315

💛 - Coveralls

Co-authored-by: Sam Dareska <37879103+samwaseda@users.noreply.github.com>
@skatnagallu
Copy link
Contributor Author

Shouldn't we change the key to 'cells' here ?

@samwaseda
Copy link
Member

Shouldn't we change the key to 'cells' here ?

I guess we should discuss it at the pyiron meeting. For now if the tests pass we can live with what we get here.

@skatnagallu
Copy link
Contributor Author

can be merged now

@samwaseda samwaseda added the format_black reformat the code using the black standard label Apr 17, 2024
Copy link
Member

@samwaseda samwaseda left a comment

Choose a reason for hiding this comment

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

As soon as Black runs I'm fine with merging it

@samwaseda samwaseda merged commit 2df0ae1 into main Apr 17, 2024
26 checks passed
@samwaseda samwaseda deleted the 1378-fix_get_structure-for-sphinx branch April 17, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format_black reformat the code using the black standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_structure() for sphinx jobs gives error
6 participants