seismometer.data.cohorts.has_good_binning¶
- seismometer.data.cohorts.has_good_binning(bin_ixs, bin_edges)¶
- Verifies that the binning is sound by making sure lists are equal length. - If there are fewer realized ix than edges then a bin is empty. 
- If there are more realized ix than edges then the edge array got out of sync somehow. 
 - Parameters:
- bin_ixs (List) – List of ix for binned values; output of np.digitize using bin_edges. 
- bin_edges (List) – List of bin edges to split on. 
 
- Raises:
- IndexError – The list of indexes does not align with the bin edge list. 
- Return type:
- None