Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __obj_matrix_handler__(matrix, transpose):
"""
Handle object conditions for matrix.
:param matrix: direct matrix
:type matrix: dict
:param transpose : transpose flag
:type transpose : bool
:return: matrix parameters as list
"""
if matrix_check(matrix):
if class_check(list(matrix.keys())) is False:
raise pycmMatrixError(MATRIX_CLASS_TYPE_ERROR)
matrix_param = matrix_params_from_table(matrix, transpose)
else:
raise pycmMatrixError(MATRIX_FORMAT_ERROR)
return matrix_param
def __obj_matrix_handler__(matrix, transpose):
"""
Handle object conditions for matrix.
:param matrix: direct matrix
:type matrix: dict
:param transpose : transpose flag
:type transpose : bool
:return: matrix parameters as list
"""
if matrix_check(matrix):
if class_check(list(matrix.keys())) is False:
raise pycmMatrixError(MATRIX_CLASS_TYPE_ERROR)
matrix_param = matrix_params_from_table(matrix, transpose)
else:
raise pycmMatrixError(MATRIX_FORMAT_ERROR)
return matrix_param