one.alf.exceptions

ALyx file related errors A set of Alyx and ALF related error classes which provide a more verbose description of the raised issues.

Exceptions

ALFError(*args[, terse])

ALFMultipleCollectionsFound(*args[, terse])

ALFMultipleObjectsFound(*args[, terse])

ALFMultipleRevisionsFound(*args[, terse])

ALFObjectNotFound(*args[, terse])

AlyxSubjectNotFound(*args[, terse])

exception ALFError(*args, terse=False)[source]

Bases: Exception

explanation = ''
exception AlyxSubjectNotFound(*args, terse=False)[source]

Bases: one.alf.exceptions.ALFError

explanation = 'The subject was not found in Alyx database'
exception ALFMultipleObjectsFound(*args, terse=False)[source]

Bases: one.alf.exceptions.ALFError

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"'
exception ALFMultipleCollectionsFound(*args, terse=False)[source]

Bases: one.alf.exceptions.ALFError

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"'
exception ALFMultipleRevisionsFound(*args, terse=False)[source]

Bases: one.alf.exceptions.ALFError

explanation = 'The matching object/file(s) belong to more than one revision. Multiple datasets in different revision folders were found with no defaultspecified.'
exception ALFObjectNotFound(*args, terse=False)[source]

Bases: one.alf.exceptions.ALFError

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"`'