Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def poly_conversion_fct(coords):
array = np.array(coords)
array *= COORD2INT_FACTOR
assert (not np.any(array > MAX_ALLOWED_COORD_VAL))
array = np.ndarray.astype(array, dtype=DTYPE_FORMAT_SIGNED_I_NUMPY)
return array
def coord2int(double):
return int(double * COORD2INT_FACTOR)
def coord2int(double):
return int(double * COORD2INT_FACTOR)
def coord2int(double):
return int(double * COORD2INT_FACTOR)