processing.tools package¶
Subpackages¶
Submodules¶
Module with Interface to download a file
- Class:
AbstractFileDownloader()
-
class
AbstractFileDownloader
¶ Bases:
object
Interface to download a file
- Abstract methods:
download_file() start_downloading()
-
abstract
download_file
(url)¶ Check parameters and call start_downloading(url)
:param : param url: custom url to file
-
abstract
start_downloading
(url)¶ Start downloading from url
:param : param url: url to file
-
count_electrodes_in_ntrode
(ntrode_metadata: list, electrode_group_id) → int¶
-
count_electrodes_in_probe
(probe_content: dict) → int¶
-
class
Dataset
(name)¶ Bases:
object
-
add_data_to_dataset
(folder_path, data_type)¶
-
get_all_data_from_dataset
(data_type)¶
-
get_continuous_time
()¶
-
get_data_path_from_dataset
(data_type)¶
-
get_mda_timestamps
()¶
-
Module to download a file from url
- Class:
FileDownloader()
-
class
FileDownloader
(url='https://www.dropbox.com/s/a7ddruxoffgbe7y/AC13_d27_WhereAreWeNow.rec?dl=1', download_path='../data/file.rec')¶ Bases:
rec_to_nwb.processing.tools.abstract_file_downloader.AbstractFileDownloader
Class to download a file
-
download_file
()¶
-
start_downloading
()¶
- Variable:
- var download_path
path where file should be saved
- var url
url to file
-
download_file
(url='')¶ Check if User type custom url. If yes, start downloading, if no check if file already exist. If no, start downloading from default url.
- Parameters:
- param url
custom url to file
-
start_downloading
(url)¶ Start downloading from url and save file to default path
:param : param url: url to file
-
-
filter_probe_by_type
(probes_content, device_type)¶
-
get_times_period_multiplier
(metadata)¶
-
return_validated_period
(period: (<class 'int'>, <class 'float'>, <class 'str'>)) → float¶
-
validate_parameters_equal_length
(class_name, *args)¶
-
validate_parameters_not_none
(class_name, *args)¶