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: Database.write should raise if one of the specified values is not entered. #117

Merged
merged 3 commits into from Aug 9, 2017

Conversation

bocklund
Copy link
Collaborator

@bocklund bocklund commented Aug 6, 2017

Closes #94.

This handles cases where if_exists is passed a string that is not in ['raise', 'overwrite', 'rename']. In that case, we should raise rather than overwrite.

Copy link
Collaborator

@richardotis richardotis left a comment

Choose a reason for hiding this comment

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

How about a test?

@bocklund
Copy link
Collaborator Author

bocklund commented Aug 7, 2017

+1 for tests revealing breakages. FileExistsError was introduced in Python 3.3.

…t entered

Closes #94.

This handles cases where `if_exists` is passed a string that is not in ['raise', 'overwrite', 'rename']. In that case, we should raise rather than overwrite.
@richardotis
Copy link
Collaborator

Looks good to merge pending tests.

@richardotis richardotis added this to the 0.5.2 milestone Aug 9, 2017
@bocklund bocklund merged commit 3d6c91b into develop Aug 9, 2017
@bocklund bocklund deleted the fix-database-write-default branch October 9, 2017 20:15
bocklund added a commit to bocklund/pycalphad that referenced this pull request Aug 17, 2021
…phad#117)

* Breaking changes for the internal API
* Refactor `calculate_thermochemical_error` to `calculate_non_equilibrium_thermochemical_probability`
* `calculate_non_equilibrium_thermochemical_probability` be based on PhaseRecords and use `calculate_` shadow function (performance).
* Don't instantiate `norm` objects when calculating `logpdf`. It's faster and we can broadcast over different standard deviations. Do this for both thermochemical probability and ZPF error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants