Skip to content

Fix a bug in store method of CifData#1136

Merged
sphuber merged 1 commit into
aiidateam:workflowsfrom
sphuber:fix_cif_data_store
Feb 19, 2018
Merged

Fix a bug in store method of CifData#1136
sphuber merged 1 commit into
aiidateam:workflowsfrom
sphuber:fix_cif_data_store

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Feb 19, 2018

The policy is that one can .store() on a node as many times as one
wants. If the node is already stored it simply shouldn't do anything.
This was not respected in the overriden store method of the CifData
data class, that always tried to set the md5 attribute which would
except when the node was already stored because then attributes are
immutable

@sphuber sphuber added this to the v0.12.0 milestone Feb 19, 2018
@sphuber sphuber requested a review from muhrin February 19, 2018 11:07
The policy is that one can .store() on a node as many times as one
wants. If the node is already stored it simply shouldn't do anything.
This was not respected in the overriden store method of the CifData
data class, that always tried to set the md5 attribute which would
except when the node was already stored because then attributes are
immutable
@sphuber sphuber merged commit 6ef4de5 into aiidateam:workflows Feb 19, 2018
@sphuber sphuber deleted the fix_cif_data_store branch February 19, 2018 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants