aspsim.diagnostics.core.get_values_up_to_idx

aspsim.diagnostics.core.get_values_up_to_idx(signal, max_idx)

gives back signal values that correspond to time_values less than max_idx, and signal values that are not nan

max_idx is exlusive