pyNAVIS.main_settings
MainSettings
- class pyNAVIS.main_settings.MainSettings(num_channels, mono_stereo=0, address_size=2, timestamp_size=4, ts_tick=1, bin_size=20000, on_off_both=1, reset_timestamp=True)[source]
Class that collects the main configuration settings of pyNAVIS
- Variables:
~MainSettings.mono_stereo (int) – Set to 0 for mono files and 1 for stereo files.
~MainSettings.bin_size (int) – Bin width (or window size) to use when processing the information.
~MainSettings.ts_tick (float) – Timestamp tick. Correspondence factor between timestamp value in file and actual time.
~MainSettings.num_channels (int) – Number of cochlea channels.
~MainSettings.address_size (int) – Number of bytes that each address is using. Only needed when loading .aedat files
~MainSettings.timestamp_size (int) – Number of bytes that each timestamp is using. Only needed when loading .aedat files
~MainSettings.on_off_both (int) – Select wether the addresses contained in the file are ON, OFF or if it is using both.
~MainSettings.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, to 0.2 for files recorded with USBAERmini2, and to 80e-3 for files recorded with zynqGrabber.
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.