elephant.utils.check_neo_consistency¶
- elephant.utils.check_neo_consistency(neo_objects, object_type, t_start=None, t_stop=None, tolerance=1e-08)[source]¶
Checks that all input neo objects share the same units, t_start, and t_stop.
- Parameters:
- neo_objectslist of neo.SpikeTrain or neo.AnalogSignal
A list of neo spike trains or analog signals.
- object_typetype
The common type.
- t_start, t_stoppq.Quantity or None, optional
If None, check for exact match of t_start/t_stop across the input.
- tolerancefloat, optional
The absolute affordable tolerance for the discrepancies between t_start/stop magnitude values across trials. Default : 1e-6
- Raises:
- TypeError
If input objects are not instances of the specified object_type.
- ValueError
If input object units, t_start, or t_stop do not match across trials.