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

remove nans for real now #183

Merged
merged 2 commits into from
Jun 5, 2024
Merged

remove nans for real now #183

merged 2 commits into from
Jun 5, 2024

Conversation

alinelena
Copy link
Member

@alinelena alinelena commented Jun 5, 2024

fixes #182

@alinelena alinelena self-assigned this Jun 5, 2024
@alinelena alinelena added the bug Something isn't working label Jun 5, 2024
ElliottKasoar
ElliottKasoar previously approved these changes Jun 5, 2024
Copy link
Member

@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.

Seems to be fixed.

Only thing to note is I think stress is still duplicated in the output if the values are valid (e.g. for NaCl.cif) - mace_mp_stress and stress, which I assume is related.

It's a more minor issue, but if we did address it, it would probably be an alternative fix to this.

@alinelena
Copy link
Member Author

Seems to be fixed.

Only thing to note is I think stress is still duplicated in the output if the values are valid (e.g. for NaCl.cif) - mace_mp_stress and stress, which I assume is related.

It's a more minor issue, but if we did address it, it would probably be an alternative fix to this.

duplication comes from the the fact I do not invalidate the calculator results... if I do that as default shall vanish. happy to do it.

@ElliottKasoar
Copy link
Member

ElliottKasoar commented Jun 5, 2024

What about setting write_results=False when writing out? (Ideally as a default in the kwargs in case there really is a reason to write it)

Given that we’ve set the calculator and explicitly handle any results from it, I don’t think we should ever be losing any information that shouldn’t be set elsewhere (info or array).

I’d probably prefer to keep the results by default if we can.

@alinelena
Copy link
Member Author

What about setting write_results=False when writing out? (Ideally as a default in the kwargs in case there really is a reason to write it)

Given that we’ve set the calculator and explicitly handle any results from it, I don’t think we should ever be losing any information that shouldn’t be set elsewhere (info or array).

I’d probably prefer to keep the results by default if we can.

i think now is fixed. at least I do not see duplicates by default. we do not loose any information.

@alinelena alinelena merged commit f097fb1 into stfc:main Jun 5, 2024
8 checks passed
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.

NaNs in SinglePoint CLI output file
3 participants