1def binary_isArrayInArray(main_array, compare_array):
2 for i in range(len(main_array)-len(compare_array)):
3 temp_array = []
4 for j in range(len(compare_array)):
5 temp_array.append(main_array[i + j])
6 print(f'{temp_array} xor {compare_array} = {np.any(np.logical_xor(temp_array, compare_array))}')
7 if np.any(np.logical_xor(temp_array, compare_array)) == False: return True
8
9 return False
10#takes in two binary arrays and looks wether the second one is part of the first one