marta-marta commited on
Commit
d1454c6
·
1 Parent(s): 44527cf

Addressing type hint error

Browse files
Data_Generation/Piecewise_Box_Functions.py CHANGED
@@ -95,7 +95,7 @@ def add_thickness(array_original, thickness: int) -> np.ndarray:
95
 
96
 
97
  # The function to efficiently combine arrays in a list
98
- def combine_arrays(arrays: list[np.ndarray]) -> np.ndarray:
99
  output_array = np.sum(arrays, axis=0) # Add the list of arrays
100
  output_array = np.array(output_array > 0, dtype=int) # Convert all values in array to 1
101
  return output_array
 
95
 
96
 
97
  # The function to efficiently combine arrays in a list
98
+ def combine_arrays(arrays):
99
  output_array = np.sum(arrays, axis=0) # Add the list of arrays
100
  output_array = np.array(output_array > 0, dtype=int) # Convert all values in array to 1
101
  return output_array