lines 333, 334 of param_file.py in subset function define d_left and d_right, which need to be integers, to be +/- subset_length / 2, which will be float if 'subset_length' is not a multiple of 2. Since d_left and d_right are used as array indices, they cannot have float values, yet there is no logic in rvic to ensure that subset_length is an even number.
lines 333, 334 of
param_file.py
insubset
function defined_left
andd_right
, which need to be integers, to be +/-subset_length / 2
, which will be float if 'subset_length' is not a multiple of 2. Sinced_left
andd_right
are used as array indices, they cannot have float values, yet there is no logic in rvic to ensure thatsubset_length
is an even number.