Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpMult Num Num Assign NameStore Call AttributeLoad Str attr BinOpMult BinOpDiv NameLoad Call NameLoad NameLoad Num BinOpDiv NameLoad NameLoad BinOpDiv NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return BinOpAdd BinOpAdd Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr Str Str Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Call NameLoad Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str NameLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Return Call NameLoad Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Return SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Dict Str Str Str Call AttributeLoad Str attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr Str Dict body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Dict Str BinOpAdd Str Call NameLoad BinOpSub NameLoad Num Return Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str Assign NameStore Dict Str BinOpAdd Str Call NameLoad BinOpSub NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad Assign NameStore ListComp Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Return NameLoad orelse If Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad body Return SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Return SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad keyword NameLoad With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr keyword Num body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Return Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad Str Str Num Num body Expr Str Assign NameStore BinOpMult Num Num Assign NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore BoolOpOr NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Break Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpSub BinOpAdd NameLoad NameLoad Num Assign NameStore NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Num Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd Str NameLoad Str If CompareEq BinOpAdd NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareGt NameLoad Num body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Str If CompareGt NameLoad Num body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num If CompareGt NameLoad NameLoad body Assign NameStore Str Break orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body AugAssignAdd NameStore Num Assign NameStore Num AugAssignAdd NameStore NameLoad orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Num Expr Call NameLoad NameLoad NameLoad keyword NameLoad Break orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num If CompareGt NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Break orelse AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num If CompareGt NameLoad NameLoad body Assign NameStore Str Break AugAssignAdd NameStore NameLoad Expr Call NameLoad NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad NameLoad Index Str Num body Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Index Num Str SubscriptLoad NameLoad Index Num Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Index Str Num body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Return NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareEq Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A Subject * N/A logging N/A hashlib N/A time N/A os N/A json N/A sys show_progress N/A N/A done total finish N/A False N/A N/A bytes_in_mb N/A 1024 1024 N/A progress_message N/A N/A  [{:.2f} %] Uploaded {:.2f} of {:.2f} Mb format N/A N/A done N/A float total 100 N/A done bytes_in_mb N/A total bytes_in_mb N/A N/A N/A N/A sys stdout write progress_message N/A N/A N/A N/A sys stdout flush N/A N/A finish N/A N/A N/A N/A N/A sys stdout write N/A N/A len progress_message N/A N/A N/A N/A sys stdout flush N/A N/A N/A N/A N/A sys stdout write N/A get_session_id N/A N/A file_path N/A N/A N/A m N/A N/A hashlib md5 N/A N/A N/A m update N/A N/A file_path encode utf-8 N/A N/A N/A N/A N/A N/A str N/A N/A time time replace . _ N/A N/A m hexdigest N/A check_upload_file N/A N/A file_path N/A N/A N/A 
    Check whether a file has the correct extension to upload.

    :param file_path: path to the file
    :type file_path: String

    :return: True if correct extension, False othersise.
    :rtype: Bool
     N/A file_parts N/A N/A file_path split . N/A extension N/A file_parts N/A -1 N/A N/A extension zip N/A N/A N/A N/A logging error You must upload a zip. N/A False N/A N/A True N/A Project N/A N/A N/A 
    This class is used to work with Mint-Labs projects. The class is instantiated passing as argument a Connection
    object and the id

    :param account: A Mint Labs Account instance
    :type account: mintlabs.Account.Account

    :param project_id: The ID (or name) of the project you want to work with
    :type project_id: Int or string

     __init__ N/A N/A self account project_id N/A N/A N/A N/A N/A type project_id str N/A N/A project_id N/A N/A next N/A filter N/A N/A N/A proj N/A N/A N/A proj N/A name project_id N/A account projects N/A id N/A N/A self _account account N/A N/A self _project_id project_id N/A N/A N/A self _set_active project_id N/A N/A self _subjects_metadata None N/A _set_active N/A N/A self project_id N/A N/A N/A 
        Set the active project.

        :param project_id: Project identifier.
        :rtype project_id: String

        :return: True if the project was correctly set, False otherwise.
        :rtype: Bool
         N/A content N/A N/A N/A self _account send_request projectset_manager/activate_project req_parameters N/A project_id N/A int project_id N/A N/A N/A content get success False N/A N/A N/A N/A logging info Successfully changed project N/A N/A self _project_id project_id N/A True N/A N/A N/A N/A logging error Unable to activate the project. N/A False N/A subjects_metadata N/A N/A self N/A N/A N/A 
        List all subject data from the selected project.

        :return: a list of dictionary of {'metadata_name': 'metadata_value'}
        :rtype: Dict
         N/A N/A N/A self get_subjects_metadata cache False N/A property get_subjects_metadata N/A N/A self cache N/A True N/A N/A 
        List all subject data from the selected project.

        :return: a list of dictionary of {'metadata_name': 'metadata_value'}
        :rtype: Dict
         N/A N/A N/A cache N/A N/A self _subjects_metadata N/A N/A content N/A N/A N/A self _account send_request patient_manager/get_patient_list req_headers N/A X-Range items=0-9999 N/A N/A self _subjects_metadata content N/A N/A content N/A self _subjects_metadata N/A content N/A subjects N/A N/A self N/A N/A N/A 
        Return the list of subject names from the selected projet.

        :return: a list of subject names
        :rtype: List(Strings)
         N/A subjects N/A self subjects_metadata N/A names N/A N/A s N/A patient_secret_name N/A s subjects N/A N/A list N/A set names N/A property check_subject_name N/A N/A self subject_name N/A N/A N/A 
        Check if a given subject name exists in the selected project.

        :param subject_name: name of the subject to check
        :type subject_name: String

        :return: True if subject name exists in project, False otherwise
        :rtype: Bool
         N/A N/A subject_name N/A self subjects N/A metadata_parameters N/A N/A self N/A N/A N/A 
        List all the parameters in the subject metadata.

        Each project has a set of parameters that define the subjects metadata.
        This function returns all this parameters and its properties.

        :return: dictionary {'param_name':
                 { 'order': Int,
                 'tags': [tag1, tag2, ..., ],
                 'title: "Title",
                 'type': "integer|string|date|list|decimal",
                 'visible': 0|1
                 }}

        :rtype: Dict["String"] -> Dict["String"] -> x
         N/A content N/A N/A N/A self _account send_request patient_manager/module_config N/A N/A N/A N/A N/A content get success False N/A N/A N/A content get data False N/A N/A N/A N/A logging error Could not retrieve metadata parameters. N/A None N/A N/A N/A N/A content N/A data N/A fields N/A property add_metadata_parameter N/A N/A self title param_id param_type visible N/A None string False N/A N/A 
        Add a metadata parameer to the project.

        :param title: identificator of this new parameter
        :param param_id: title of this new parameter
        :param param_type: type of the parameter. One of:
                           "integer", "date", "string", "list", "decimal"
        :param visible: whether the parameter will be visible in the table
                        of patients.

        :type title: String
        :type param_id: String
        :type param_type: String
        :type visible: Bool

        :return: True if parameter was correctly added, False otherwise.
        :rtype: Bool.
         N/A param_id N/A param_id title N/A param_properties N/A title param_id param_type N/A str N/A int visible N/A post_data N/A add edit delete N/A N/A | join param_properties N/A answer N/A N/A N/A self _account send_request patient_manager/save_metadata_changes req_parameters post_data N/A N/A N/A N/A N/A answer get success False N/A N/A title N/A N/A answer get data N/A N/A N/A N/A N/A logging error N/A N/A Could not add new parameter: {} format title N/A False N/A N/A N/A N/A logging info New parameter added: title param_properties N/A True N/A list_analysis N/A N/A self limit N/A 10000000 N/A N/A 
        List the analysis available to the user.

        :param limit: max number of results
        :type limit: Int

        :return: List of analysis, each a dictionary
        :rtype: Dict
         N/A req_headers N/A X-Range N/A items=0- N/A str N/A limit 1 N/A N/A N/A N/A self _account send_request analysis_manager/get_analysis_list req_headers req_headers N/A list_input_containers N/A N/A self search_condition limit N/A * 1000 N/A N/A 
        List the containers available to the user.

        :param search_condition: search string
        :param limit: max number of results

        :type search_condition: String
        :type limit: Int

        :return: List of containers, each a dictionary
                 {"name": "container-name", "id": "container_id"}
        :rtype: Dict
         N/A req_headers N/A X-Range N/A items=0- N/A str N/A limit 1 N/A content N/A N/A N/A self _account send_request file_manager/get_container_list req_parameters search_condition req_headers req_headers N/A containers N/A N/A patient_secret_name container_name container_id N/A c N/A patient_secret_name N/A c N/A name N/A c N/A _id N/A c content N/A containers N/A list_result_containers N/A N/A self limit N/A 1000 N/A N/A 
        List the result containers available to the user.

        :param search_condition: search string
        :param limit: max number of results

        :type search_condition: String
        :type limit: Int

        :return: List of containers, each a dictionary
                 {"name": "container-name", "id": "container_id"}
        :rtype: Dict
         N/A analysis N/A N/A self list_analysis limit N/A N/A N/A name id N/A a N/A name N/A a N/A out_container_id N/A a analysis N/A list_container_files N/A N/A self container_id N/A N/A N/A 
        List the name of the files available inside a given container.

        :param container_id: Container identifier.
        :type container_id: String

        :return: List of file names (strings)
        :rtype: List(Strings)
         N/A content N/A N/A N/A self _account send_request file_manager/get_container_files req_parameters N/A container_id container_id N/A N/A N/A N/A N/A content get success False N/A N/A N/A content get data False N/A N/A False N/A N/A N/A N/A N/A content N/A data get files False N/A N/A N/A N/A content N/A data N/A files N/A N/A N/A N/A logging error Could not get files N/A False N/A list_container_files_metadata N/A N/A self container_id N/A N/A N/A 
        List all the metadata of the files available inside a given container.

        :param container_id: Container identifier.
        :type container_id: String

        :return: Dictionary of {'metadata_name': 'metadata_value'}
        :rtype: Dict
         N/A content N/A N/A N/A self _account send_request file_manager/get_container_files req_parameters N/A container_id container_id N/A N/A N/A content get success False N/A N/A N/A N/A content N/A data N/A meta N/A N/A error N/A content N/A error N/A N/A N/A logging error error N/A False N/A get_file_metadata N/A N/A self container_id filename N/A N/A N/A 
        Retrieve the metadata from a particular file in a particular container.

        :param container_id: Container identifier.
        :type container_id: String
        :param filename: Name of the file.
        :type filename: String

        :return: Dictionary with the metadata.
        :rtype: Dict
         N/A all_metadata N/A N/A self list_container_files_metadata container_id N/A file_meta all_metadata N/A N/A N/A N/A file_meta N/A name filename N/A N/A file_meta N/A download_file N/A N/A self container_id file_name local_filename overwrite N/A False False N/A N/A 
        Download a single file from a  specific container.

        :param container_id: id of the container inside which the file is.
        :param file_name: name of the file in the container.
        :param local_filename: name of the file to be created. By default, the
                               same as file_name.
        :param overwrite: whether or not to overwrite the file if existing.

        :type container_id: Int
        :type file_name: String
        :type local_filename: String
        :type overwrite: Bool
         N/A local_filename N/A local_filename file_name N/A N/A N/A N/A N/A os path exists local_filename N/A overwrite N/A N/A msg N/A N/A File '{}' already exists format local_filename N/A N/A N/A logging error msg N/A False N/A params N/A container_id files container_id file_name N/A content N/A N/A N/A self _account send_request file_manager/download_file params stream True return_raw_response True N/A N/A open local_filename wb f N/A N/A chunk N/A N/A content iter_content chunk_size 1024 N/A N/A chunk N/A N/A N/A N/A f write chunk N/A N/A N/A f flush N/A N/A N/A logging info N/A N/A File {} from container {} saved to {} format file_name container_id local_filename N/A True N/A download_files N/A N/A self container_id filenames zip_name overwrite N/A files.zip False N/A N/A 
        Download a set of files from a given container.

        :param container_id: id of the container inside which the file is.
        :param filenames: list of files to download.
        :param overwrite: whether or not to overwrite the file if existing.
        :param local_filenames: list of filenames to save the files locally.

        :type container_id: Int
        :type filenames: List (Strings)
        :type overwrite: Bool
        :type local_filenames: List (Strings)
         N/A N/A N/A self download_file container_id N/A N/A ; join filenames zip_name overwrite N/A get_subject_id N/A N/A self subject_name cache N/A False N/A N/A 
        Given a subject name, return its id in the project.
        :param subject_name: name of the subject in the project.
        :type subject_name: String

        :return: the id of the subject in the project, or False if
                 the subject is not found.
        :rtype: Int or Bool (on failure)
         N/A user N/A N/A self get_subjects_metadata cache N/A N/A N/A N/A user N/A patient_secret_name subject_name N/A N/A N/A int N/A user N/A _id N/A False N/A get_subject N/A N/A self subject_name cache N/A True N/A N/A 
        Return a subject object, representing a subject from the project.

        :param subject_name: name of the subject.
        :type subject_name: String

        :return: a Subject instance representing the desired subject, or
                 False if the subject wasn't found
        :rtype: Subject or Bool
         N/A subject_id N/A N/A self get_subject_id subject_name cache cache N/A N/A subject_id False N/A N/A False N/A subj N/A Subject subject_name N/A N/A subj subject_id subject_id N/A N/A subj project self N/A subj N/A add_subject N/A N/A self subject N/A N/A N/A 
        Add a subject to the project.

        :param subject: instance of Subject representing the subject to add.
        :type subject: Subject

        :return: True if correctly added, False otherwise
        :rtype: Bool
         N/A N/A N/A self check_subject_name N/A subject name N/A N/A N/A N/A logging error N/A N/A Subject with name {} already exists in project! format N/A subject name N/A False N/A content N/A N/A N/A self _account send_request patient_manager/upsert_patient req_parameters N/A secret_name N/A subject name N/A N/A N/A content get success False N/A N/A N/A subject subject_id N/A N/A self get_subject_id N/A subject name N/A N/A subject project self N/A N/A N/A logging info N/A N/A Subject {0} was successfully created format N/A subject name N/A True N/A N/A N/A N/A logging error N/A N/A Subject {} could not be created. format N/A subject name N/A False N/A delete_subject N/A N/A self subject_name N/A N/A N/A 
        Delete a subject from the project.

        :param subject_name: name of the subject to be deleted.
        :type subject_name: String

        :return: True if correctly delted, False otherwise.
        :rtype: Bool
         N/A N/A N/A N/A self check_subject_name subject_name N/A N/A N/A N/A logging error N/A N/A Attempt to delete an inexisting subject: '{}'. format subject_name N/A False N/A subject_id N/A N/A self get_subject_id subject_name N/A content N/A N/A N/A self _account send_request patient_manager/delete_patient req_parameters N/A patient_id subject_id N/A N/A N/A content get success False N/A N/A N/A N/A logging info N/A N/A Subject '{}' successfully deleted. format subject_name N/A True N/A N/A N/A N/A logging error N/A N/A Subject '{}' could not be deleted. format subject_name N/A False N/A upload_file N/A N/A self file_path subject_name date_of_scan description result name input_data_type container_id add_to_container_id N/A False mri_brain_data 0 0 N/A N/A 
        Upload a file to the platform, associated with the current user.

        :param file_path: path to the file to upload.
        :param subject_name: subject to which this file will belong
        :param date_of_scan: date of scan/creation of the file
        :param description: description of the file
        :param result: is this file a result? ie, the product of a previous
                       analysis?
        :param name: name of the file in the platform
        :param input_data_type: mri_brain_data or GAMETECTION
        :param container_id: ??
        :param add_to_container_id: id of the container to which this file
                                    should be added (if id > 0)

        :type file_path: String
        :type subject_name: String
        :type date_of_scan: String
        :type description: String
        :type result: String
        :type name: String
        :type input_data_type: String
        :type container_id: Int
        :type add_to_container_id: Int

        :return: True if correctly uploaded, False otherwise
        :rtype: Bool
         N/A chunk_size N/A 256 1024 N/A max_retries 10 N/A file_name N/A N/A N/A N/A os path split file_path N/A 1 N/A name N/A name N/A N/A N/A N/A os path split file_path N/A 1 N/A total_bytes N/A N/A N/A os path getsize file_path N/A N/A open file_path rb file_object N/A N/A file_size N/A N/A N/A os path getsize file_path N/A uploaded 0 N/A session_id N/A get_session_id file_path N/A chunk_num 0 N/A retries_count 0 N/A error_message N/A uploaded_bytes 0 N/A response None N/A True N/A N/A data N/A N/A file_object read chunk_size N/A N/A data N/A N/A N/A start_position N/A chunk_num chunk_size N/A end_position N/A N/A start_position chunk_size 1 N/A bytes_to_send chunk_size N/A N/A end_position total_bytes N/A N/A end_position N/A total_bytes 1 N/A bytes_to_send N/A total_bytes uploaded_bytes N/A bytes_range N/A N/A N/A N/A N/A bytes  N/A str start_position - N/A str end_position / N/A str total_bytes N/A request_headers N/A N/A N/A request_headers N/A Content-Type application/zip N/A N/A request_headers N/A Content-Range bytes_range N/A N/A request_headers N/A Session-ID session_id N/A N/A request_headers N/A Content-Length bytes_to_send N/A N/A request_headers N/A Content-Disposition N/A N/A attachment; filename=" file_name " N/A N/A N/A uploaded_bytes bytes_to_send total_bytes N/A N/A N/A request_headers N/A X-Mint-Name name N/A N/A request_headers N/A X-Mint-Date date_of_scan N/A N/A request_headers N/A X-Mint-Description description N/A N/A request_headers N/A X-Mint-Patient-Secret subject_name N/A input_data_type N/A N/A N/A request_headers N/A X-Mint-Type input_data_type N/A result N/A N/A N/A request_headers N/A X-Mint-In-Out result N/A N/A container_id 0 N/A N/A N/A request_headers N/A X-Mint-Container-Id container_id N/A N/A N/A request_headers N/A X-Mint-In-Out in N/A N/A add_to_container_id 0 N/A N/A N/A request_headers N/A X-Mint-Add-To add_to_container_id N/A N/A request_headers N/A X-Requested-With XMLHttpRequest N/A response N/A N/A N/A self _account send_request upload req_parameters data req_headers request_headers return_raw_response True N/A N/A response None N/A N/A retries_count 1 N/A N/A N/A time sleep N/A retries_count 5 N/A N/A retries_count max_retries N/A N/A error_message HTTP Connection Problem N/A N/A N/A N/A N/A int N/A response status_code 201 N/A N/A chunk_num 1 N/A retries_count 0 N/A uploaded_bytes chunk_size N/A N/A N/A N/A int N/A response status_code 200 N/A N/A retries_count 0 N/A N/A show_progress file_size file_size finish True N/A N/A N/A N/A N/A int N/A response status_code 416 N/A N/A retries_count 1 N/A N/A N/A time sleep N/A retries_count 5 N/A N/A retries_count N/A self max_retries N/A N/A error_message Error Code: 416; Requested Range Not Satisfiable (NGINX) N/A N/A N/A retries_count 1 N/A N/A N/A time sleep N/A retries_count 5 N/A N/A retries_count max_retries N/A N/A error_message Number of retries has been reached. Upload process stops here ! N/A N/A uploaded chunk_size N/A N/A show_progress uploaded file_size N/A N/A N/A len error_message 0 N/A N/A N/A result N/A N/A response N/A N/A json loads N/A response text N/A N/A N/A N/A response N/A success 1 N/A N/A response N/A need_confirmation 0 N/A N/A True N/A mappings N/A response N/A data N/A container_id N/A response N/A container_id N/A mappings_to_send N/A N/A m mappings N/A N/A N/A N/A mappings_to_send append N/A N/A N/A N/A N/A N/A m N/A 0 , N/A m N/A 1 , N/A m N/A 2 , N/A N/A N/A len mappings_to_send 0 N/A N/A txt_mappings N/A N/A ; join mappings_to_send N/A N/A N/A logging info Confirming upload. This might take some time, depending on file size... N/A response_2 N/A N/A N/A self _account send_request file_manager/confirm_uploaded_files req_parameters N/A container_id mappings container_id txt_mappings N/A N/A N/A response_2 N/A success 1 N/A N/A N/A N/A logging info Your data was successfully uploaded. N/A True N/A N/A N/A N/A logging error N/A N/A Error: {0} format N/A response_2 N/A error N/A False N/A N/A N/A N/A logging error Unrecognized sets. N/A False N/A N/A True N/A N/A N/A N/A logging error error_message N/A False N/A upload_mri N/A N/A self file_path subject_name N/A N/A N/A 
        Upload new MRI data to the subject.

        :param file_path: Path to the file to upload
        :type file_path: String

        :return: True if upload was correctly done, False otherwise.
        :rtype: bool
         N/A N/A check_upload_file file_path N/A N/A N/A N/A self upload_file file_path subject_name N/A upload_gametection N/A N/A self file_path subject_name N/A N/A N/A 
        Upload new Gametection data to the subject.

        :param file_path: Path to the file to upload
        :type file_path: String

        :return: True if upload was correctly done, False otherwise.
        :rtype: bool
         N/A N/A check_upload_file file_path N/A N/A N/A N/A self upload_file file_path subject_name input_data_type parkinson_gametection N/A False N/A upload_result N/A N/A self file_path subject_name N/A N/A N/A 
        Upload new result data to the subject.

        :param file_path: Path to the file to upload
        :type file_path: String

        :return: True if upload was correctly done, False otherwise.
        :rtype: bool
         N/A N/A check_upload_file file_path N/A N/A N/A N/A self upload_file file_path subject_name result True N/A False N/A copy_container_to_project N/A N/A self container_id project_id N/A N/A N/A 
        Copy a container to another project.

        :param container_id: id of the container to copy.
        :type container_id: Int

        :param project_id: id of the project to retireve, either the numeric
                           id or the name
        :type project_id: Int | String

        :return: True on success, False on fail
        :rtype: Bool
         N/A N/A N/A N/A type project_id int N/A N/A type project_id float N/A N/A p_id N/A int project_id N/A N/A N/A N/A type project_id str N/A N/A projects N/A N/A self _account projects N/A projects_match N/A proj N/A proj projects N/A N/A proj N/A name project_id N/A N/A projects_match N/A N/A N/A Exception N/A N/A Project {} does not exist or is not available for this user. format project_id N/A p_id N/A int N/A N/A projects_match N/A 0 N/A id N/A data N/A container_id project_id container_id p_id N/A content N/A N/A N/A self _account send_request file_manager/copy_container_to_another_project req_parameters data N/A N/A N/A content get success False N/A N/A True N/A N/A N/A N/A logging error N/A N/A content get error Error: couldn't copy container. N/A False N/A start_analysis N/A N/A self script_name in_container_id analysis_name analysis_description N/A None None N/A N/A 
        Starts an analysis on a subject.

        :param script_name: name of the script to be run. One of: 'volumetry',
                            'parkinson_gametection', 'morphology',
                            'morphology_new', '3d_wires', 'dti_fa_files',
                            '2d_wires' or 'morphology_infant'.
        :type script_name: String

        :param in_container_id: The id of the container to get the data from.
        :type in_container_id: Int

        :param analysis_name: name of the analysis (optional)
        :type analysis_name: String

        :param analysis_description: description of the analysis (optional)
        :type analysis_description: String

        :return: True if correctly started, False otherwise.
        :rtype: Bool
         N/A post_data N/A script_name in_container_id script_name in_container_id N/A analysis_name N/A N/A N/A post_data N/A name analysis_name N/A analysis_description N/A N/A N/A post_data N/A description analysis_description N/A N/A post_data N/A input_type script_name N/A response N/A N/A N/A self _account send_request analysis_manager/analysis_registration req_parameters post_data N/A N/A N/A N/A response get success False N/A N/A N/A N/A logging error Unable to start the analysis. N/A False N/A N/A has_to_ask response N/A N/A proj_id N/A response N/A project_id N/A files N/A response N/A files N/A modalities N/A N/A self __get_modalities files N/A files_info N/A N/A modality modalities N/A N/A files_mod N/A f N/A f files N/A N/A N/A f N/A metadata N/A modality modality N/A files_mod N/A sorted files_mod key N/A N/A N/A f N/A N/A f N/A size reverse True N/A file_ N/A files_mod N/A 0 N/A filename N/A file_ N/A name N/A N/A N/A files_info append N/A N/A {};{} format modality filename N/A N/A post_data N/A c_files N/A N/A | join files_info N/A N/A post_data N/A project_id proj_id N/A response N/A N/A N/A self _account send_request analysis_manager/analysis_registration req_parameters post_data N/A N/A N/A N/A response get success False N/A N/A N/A N/A logging error Unable to start the analysis. N/A False N/A N/A True N/A __get_modalities N/A N/A self files N/A N/A N/A modalities N/A N/A file_ files N/A N/A modality N/A N/A file_ N/A metadata N/A modality N/A N/A modality modalities N/A N/A N/A N/A modalities append modality N/A modalities N/A N/A