Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def NCLS(starts, ends, ids):
if starts.dtype == np.int64:
return NCLS64(starts, ends, ids)
elif starts.dtype == np.int32:
return NCLS32(starts, ends, ids)
else:
raise Exception("Starts/Ends not int64 or int32: " + str(starts.dtype))