cdttable package¶
-
+cdttable.add_rm_dependency(choice)¶ ADD_RM_DEPENDENCY add or remove java class dependency
Detailed explanation goes here
-
+cdttable.check_preprocess_result(preprocess_result)¶ CHECK_PREPROCESS_RESULT Check preprocess result
fields exist.
-
+cdttable.find_event_times_given_codes(alignCodes, eventCodes, eventTimes)¶ FIND_EVENT_TIMES_GIVEN_CODES find (earlist) time of events given coides.
Parameters: - alignCodes – codes to find to time
- eventCodes – array of event codes
- eventTimes – array of event times.
Returns: times of first occuring alignCodes.
-
+cdttable.import_files(preprocess_func, arglist, import_params_path)¶ IMPORT_FILES convert preprocessed data into CDT. Detailed explanation goes here
-
+cdttable.import_one_file(preprocess_result, import_params)¶ IMPORT_ONE_FILE get CDT table for one file
params preprocess_result: the canonical preprocessed result with event_codes, event_times, spike_times, and spike_locations. params import_params: Java object representing import params obtained via +cdttable.read_import_params().return: one CDTTable. See also
-
+cdttable.import_one_trial(trial_struct, import_params)¶ IMPORT_ONE_TRIAL import one trial
param trial_struct: intermediate format storing all info needed for this trial param import_params: Java object representing import params obtained via +cdttable.read_import_params().return: one row in CDT Table.
-
+cdttable.import_one_trial_getevents(CDTTableRow, trial_struct)¶ IMPORT_ONE_TRIAL_GETEVENTS get event times of a trial.
param CDTTableRow: CDTTableRow passed by +cdttable.import_one_trial().param trial_struct: trial_struct from +cdttable.import_one_trial()notice that these are all open intervals, consistent with Corentin’s old program.
-
+cdttable.import_one_trial_getspikes(CDTTableRow, trial_struct)¶ IMPORT_ONE_TRIAL_GETSPIKES get spike times of a trial.
param CDTTableRow: CDTTableRow passed by +cdttable.import_one_trial().param trial_struct: trial_struct from +cdttable.import_one_trial()notice that these are all open intervals, consistent with Corentin’s old program.
-
+cdttable.import_one_trial_startstoptime(CDTTableRow, trial_struct, import_params)¶ IMPORT_ONE_TRIAL_STARTSTOPTIME find start and stop times of subtrials
param CDTTableRow: CDTTableRow passed by +cdttable.import_one_trial().param trial_struct: trial_struct from +cdttable.import_one_trial()param import_params: import_params from +cdttable.import_one_trial()See also
-
+cdttable.import_one_trial_trial_start_stop_time(CDTTableRow, trial_struct, import_params)¶ IMPORT_ONE_TRIAL_TRIAL_START_STOP_TIME find start and stop times the trial
param CDTTableRow: CDTTableRow passed by +cdttable.import_one_trial().param trial_struct: trial_struct from +cdttable.import_one_trial()param import_params: import_params from +cdttable.import_one_trial()See also
-
+cdttable.read_import_params(import_params_path)¶ READ_IMPORT_PARAMS read import parameters
Parameters: import_params_path – path to JSON file of import params Returns: [ import_params_java, isValid ]. second argument logical, whether import_params valid or not, first one being the java object of params ifisValid, and empty ([]) otherwise.
-
+cdttable.root_dir()¶ ROOT_DIR return directory of package root.
this is convenient for getting locations of various files in the package.