bids_monitor Package

bids_data_builder

class tvb.interfaces.rest.bids_monitor.bids_data_builder.BIDSDataBuilder(bids_data_to_import=None, bids_root_dir=None, init_json_files=None)[source]

Bases: object

create_archive(files_list)[source]
create_dataset_json_files()[source]

Creates BIDS dataset zip using the provided json files

create_dataset_subjects()[source]

Creates BIDS dataset zip with all subject folders and the provided data type

files_build_data_check()[source]
get_abs_path(bids_root_dir, sub, path)[source]
get_complete_paths(sub, paths_queue, json_files_processed, import_dependencies_paths, final_paths_set)[source]
get_connected_dependencies_paths(sub, paths_queue, json_files_processed, import_dependencies_paths)[source]
get_data_files(import_dependencies_paths, sub)[source]
init_paths()[source]
subject_build_data_check()[source]

bids_dir_monitor

class tvb.interfaces.rest.bids_monitor.bids_dir_monitor.BIDSDirWatcher(DIRECTORY_TO_WATCH=None, UPLOAD_TRIGGER_INTERVAL=20, IMPORT_DATA_IN_TVB=False, TVB_PROJECT_ID=None)[source]

Bases: object

change_outside_sub_dir(file_path)[source]
check_data()[source]
create_bids_dataset(added_files)[source]
end_watcher()[source]
handle_file_added(event)[source]
init_watcher()[source]
upload_to_tvb(file_path)[source]
uploader_thread()[source]
watchdog_thread()[source]

launch_bids_monitor

tvb.interfaces.rest.bids_monitor.launch_bids_monitor.get_bids_dir()[source]
tvb.interfaces.rest.bids_monitor.launch_bids_monitor.monitor_dir(bids_dir)[source]

Subpackages