torchgpe.utils.potentials.any_time_dependent_variable#
- torchgpe.utils.potentials.any_time_dependent_variable(*vars)[source]#
Check if any of the variables is time dependent
- Parameters:
*vars (Union[float, Callable]) – The variables to check. If any of them is a function, the function returns True. If all of them are constants, the function returns False.
Examples
>>> any_time_dependent_variable(1, 2, 3) False >>> any_time_dependent_variable(1, lambda t: t, 3) True