Skip to content

make elasticity result processing robust to missing data#526

Open
joehart2001 wants to merge 3 commits into
mainfrom
robust-elasticity
Open

make elasticity result processing robust to missing data#526
joehart2001 wants to merge 3 commits into
mainfrom
robust-elasticity

Conversation

@joehart2001
Copy link
Copy Markdown
Collaborator

… before the checks

Pre-review checklist for PR author

PR author must check the checkboxes below when creating the PR.

Summary

Issue was defining a key before any missing data checks, which required data to be present. now we avoid this

Linked issue

Resolves #

Testing

@joehart2001 joehart2001 requested a review from ElliottKasoar May 4, 2026 12:24
Comment thread ml_peg/calcs/bulk_crystal/elasticity/calc_elasticity.py Outdated
Comment on lines +243 to +244
if not isinstance(struct, Structure):
continue
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is it a problem if the atoms_list skips some structures in terms of piecing together later which ones failed?

ElliottKasoar
ElliottKasoar previously approved these changes May 13, 2026
Copy link
Copy Markdown
Collaborator

@ElliottKasoar ElliottKasoar 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, as long as my comment is not a problem

@joehart2001
Copy link
Copy Markdown
Collaborator Author

Looks good, as long as my comment is not a problem

i made a fix in the analysis to your comment, but then running pet-mad revealed that the tensor maes were not robust to missing data so ive added some more fixes on top. also a fix to do with saving the pet-mad tensors too, which was just hte finla part of the calc so jsut had to rerun the part that writes the csv from the checkpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants