You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to find a good interface to expose attachments. One idea is:
dset=client.get_dataset(...)
assertdset.attachmentsisUnset# not initialisedattachments=client.fetch_attachments(dset) # or pass pid# ordset=client.with_fetched_attachments(dset)
assertdset.attchments== [ ... ] # all attachments stored as a listdset=Dataset(...)
assertdset.attachments== []
dset.attachments.append(Attachment(...))
finalized=client.upload_new_dataset_now(dset) # uploads attachments if the list is non-empty
We can also add an argument to get_dataset to immediately download the attachments.
when downloading w/o attachments, they are Unset in order to stop users from adding attachments and getting into an inconsistent state between the client and database (e.g., client as attachment A and dbase has [B, C]).
The text was updated successfully, but these errors were encountered:
Need to find a good interface to expose attachments. One idea is:
We can also add an argument to
get_dataset
to immediately download the attachments.when downloading w/o attachments, they are
Unset
in order to stop users from adding attachments and getting into an inconsistent state between the client and database (e.g., client as attachment A and dbase has [B, C]).The text was updated successfully, but these errors were encountered: