pyNAVIS.main_settings¶
MainSettings¶
- class pyNAVIS.main_settings.MainSettings(num_channels, mono_stereo, address_size=2, ts_tick=0.2, bin_size=20000, on_off_both=1, reset_timestamp=True)[source]¶
Class that collects the main configuration settings of pyNAVIS
- Variables
mono_stereo (int) – Set to 0 for mono files and 1 for stereo files.
bin_size (int) – Bin width (or window size) to use when processing the information.
ts_tick (float) – Timestamp tick. Correspondence factor between timestamp value in file and actual time.
num_channels (int) – Number of cochlea channels.
address_size (int) – Number of bytes that each address is using.
on_off_both (int) – Select wether the addresses contained in the file are ON, OFF or if it is using both.
reset_timestamp (boolean) – Select wether to have timedtamps starting at 0 (True) or leave it as they are (False).
Notes
Set ts_tick to 1 for .aedat files recorded with jAER, or to 0.2 for files recorded with USBAERmini2.
Set address_size to 2 for .eadat files recorded with USBAERmini2, or to 4 for files recorded with jAER. This parameter is only relevant for loading AEDAT (.aedat) files.
Set on_off_both to 0 if addresses are only ON or OFF, or to 1 if using both ON and OFF.
reset_timestamp subtracts the smallest timestamp in the file to each of the timestamps.