Skip to content

ndi.cloud.fun.create_new_dataset

 CREATE_NEW_DATASET A helper function. Creates a new dataset filling the dataset details
    using the dataset information collected from the metadata app, and add the openminds_doc
    to the session. Finally, it uploads all the documents and files to the dataset.
    Detailed explanation goes here

  [B, MSG, DATASET_ID] = ndi.cloud.fun.CREATE_NEW_DATASET(S, STRUCT, EMAIL, PASSWORD)

  Inputs:
    S - ndi.session object
    STRUCT - a struct collected from the metadata app
    EMAIL - email address of the user
    PASSWORD - password of the user

  Outputs:
    B - did the upload work? 0 for no, 1 for yes
    MSG - An error message if the upload failed; otherwise ''
    DATASET_ID - the dataset id of the newly created dataset