Skip to content

Commit a54c5a4

Browse files
dmitrii-zagornyiGitHub Enterprise
authored andcommitted
Moved assert
1 parent c253eee commit a54c5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkl-service/_mkl_service.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,9 @@ cdef inline __set_mpi(vendor, custom_library_name=None):
800800
-3: 'MPI library cannot be set at this point',
801801
},
802802
}
803+
assert((vendor is not 'custom' and custom_library_name is None) or
804+
(vendor is 'custom' and custom_library_name is not None))
803805
mkl_vendor = __mkl_str_to_int(vendor, __variables['input'])
804-
assert((vendor is 'custom' and custom_library_name is not None) or
805-
(vendor is not 'custom' and custom_library_name is None))
806806

807807
cdef bytes c_bytes
808808
cdef char* c_string = ''

0 commit comments

Comments
 (0)