API Documentation¶
API reference for the module.
Table of Contents¶
File I/O¶
Functions for file I/O.
NWB & Custom file I/O¶
|
Save out an NWB file. |
|
Load an NWB file. |
|
Save out a config file. |
|
Load an individual config file. |
|
Load all configs together. |
|
Save a task object. |
|
Load a task object. |
General file I/O¶
|
Save out text to a txt file. |
|
Load text from a txt file. |
|
Save out a dictionary of data to a JSON file. |
|
Load from a JSON file. |
|
Save out data to a JSONlines file. |
|
Load a .mat file. |
|
Load a collection of JSON files into a dataframe. |
|
Open a hdf5 file. |
|
Load a specified field from a HDF5 file. |
Objects¶
Custom objects.
Electrodes¶
Object for collecting electrode information. |
TaskBase¶
|
Base object for collecting task information. |
Paths¶
Path management.
Paths Object¶
|
Paths object for a session of single-unit data. |
Directory Creators¶
|
Make a folder, if it does not already exist. |
|
Create the folder structure for a project. |
|
Create the folder structure for a subject. |
|
Create the folder structure for a session of data. |
Plots¶
Plotting functions and utilities.
Timestamps¶
|
Plot the alignment between synchronization pulses. |
|
Plot detected peaks on a time series. |
Timestamps¶
Functions and helpers for managing timestamps and temporal alignment.
Alignment¶
|
Fit a model to align synchronization pulses from different recording systems. |
|
Predict times alignment from model coefficients. |
|
Predict times alignment from a model object. |
|
Match pulses to each other based on ISIs. |
Peaks¶
|
Process peaks from a time series. |
Update¶
|
Apply an offset to timestamps. |
|
Change the units of timestamps. |
Utils¶
Utilities & helper functions.
Check Functions¶
|
Check if a variable is empty, across possible types. |
|
Check is a variable is of the given type(s). |
|
Helper function to clean a list of string values for adding to NWB. |
Convert Functions¶
|
Convert a string to a boolean. |
Convert a list of strings to a list of boolean. |
|
|
Convert type of a given variable. |
|
Convert to an array of specified data type. |
|
Convert a time value to a datetime date. |
Extract Functions¶
|
Select a (single) event based on time range, returning NaN if not found. |
|
Extract a value for a specified trial. |
Log Functions¶
|
Print a status update. |
Run Functions¶
|
Catch a raised error, with the option to save an error log and proceed. |
Tool Functions¶
|
Generator that returns an incrementing index value. |
|
Get the current datetime. |
Validate Functions¶
|
Validate a NWB file. |