-
Notifications
You must be signed in to change notification settings - Fork 5
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
downloaded structures cannot be reuploaded #81
Comments
if it's the derived structures (modified, uploaded, volume etc) then these should not cause an error but simply be rederived from the structure. a warning that this has been done perhaps issued to the user? |
the structure should be hashed and checked against existing structures, and if there are matches, then a warning issued that overwriting will happen, and exit without doing anything if --yes is not given. when --yes is given, matching structures should not get a new entry, but key-value pairs updated (i.e. added for new ones and overwritten for old ones) |
keys that are automatically derived (such as "filename", "uploaded", "modified") should be derived again and added to the dictionary, with the incoming values discarded (and a warning issued about this) |
The specific code-level problem is that both |
If the only conflict is between |
I agree this should just work, and we need to ensure that incoming keys (whatever they are), if the configuration is formally valid, it should be processed properly. |
when abcd keys and keys in user's structures clash (e.g. number of atoms), give options to upload:
|
If one downloads a structure from
abcd
then that cannot be reuploaded into anabcd
database because there are keys in the info that clash with the derived ones.Example: try uploading the following xyz using
abcd upload -i mystructure.xyz
Which then gives error of:
Should we just let the properties calculated/generated on upload overwrite the ones with the same name in the file, with warnings showing? Or add some prefix to the ones from the file, perhaps with an option to switch between these behaviours?
The text was updated successfully, but these errors were encountered: