Source code for ibllib.exceptions

[docs] class IblError(Exception): explanation = '' def __init__(self, *args): if args: self.message = args[0] else: self.message = None def __str__(self): return f"{self.message} \n {self.explanation} "
[docs] class SyncBpodWheelException(IblError): explanation = "The bpod can't be synchronized with the Rotary Encoder."
[docs] class SyncBpodFpgaException(IblError): explanation = "The bpod can't be synchronized with the FPGA."
[docs] class Neuropixel3BSyncFrontsNonMatching(IblError): explanation = (" When the npy files containing sync pulses for probes do not match with nidq." "In 3B, this indicates that either the binary files is corrupt," "either the extracted sync files are corrupt.")
[docs] class NvidiaDriverNotReady(IblError): explanation = ('Nvidia driver does not respond. This usually means the GPU is inaccessible ' 'and needs to be recovered through a system reboot.')
[docs] class WidefieldWiringException(IblError): explanation = ("LED wiring in data is not found in the wiring map. Check that correct wiring map is being used.")