def profiles_wrapper(args): profiles_filename = args.profiles_full_file decompressed_profiles_array = IO.unpack_profiles_file(profiles_filename, args.indices_mode, do_print=True) run_test_compressing_decompressing_indices(args, decompressed_profiles_array)
def test_filtered_profiles(args): original_profiles_array = IO.unpack_profiles_file(args.profiles_full_file, do_print=True) with open(args.profiles_filtered_file, 'rb') as rf: bitstring = rf.read() filtered_profiles_array = IO.decompress_profiles_indices(bitstring) print(original_profiles_array.shape) print(original_profiles_array) print(original_profiles_array[6:16, ].sum()) print(filtered_profiles_array.shape) print(filtered_profiles_array) print(filtered_profiles_array.sum())