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 AlyxSubjectNotFound(IblError): explanation = 'The subject was not found in Alyx database'
[docs]class ALFMultipleObjectsFound(IblError): explanation = ('The search object was not found. ALF names have the pattern ' '(_namespace_)object.attribute(_timescale).extension, e.g. for the file ' '"_ibl_trials.intervals.npy" the object is "trials"')
[docs]class ALFMultipleCollectionsFound(IblError): explanation = ('The matching object/file(s) belong to more than one collection. ' 'ALF names have the pattern ' 'collection/(_namespace_)object.attribute(_timescale).extension, e.g. for the ' 'file "alf/probe01/spikes.times.npy" the collection is "alf/probe01"')
[docs]class ALFObjectNotFound(IblError): explanation = ('The ALF object was not found. This may occur if the object or namespace or ' 'incorrectly formatted e.g. the object "_ibl_trials.intervals.npy" would be ' 'found with the filters `object="trials", namespace="ibl"`')