PyREx

pyrex.FunctionSignal.with_times

FunctionSignal.with_times(new_times)

Returns a representation of this signal over a different times array.

Parameters
new_timesarray_like

1D array of times (s) for which to define the new signal.

Returns
FunctionSignal

A representation of the original signal over the new_times array.

Notes

Leverages knowledge of the function that creates the signal to properly recalculate exact (not interpolated) values for the new times.

Tries to interpret cases where with_times was used to incorporate effects of a leading (or trailing) signal outside of the times array by setting leading and trailing buffer values when new_times is fully contained by the previous times array.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation