@@ -882,7 +882,7 @@ def execute(self, pyfunc=AdvectionRK4, pyfunc_inter=None, endtime=None, runtime=
882882 raise ValueError ('Time step dt is too small' )
883883 if (dt * 1e6 ) % 1 != 0 :
884884 raise ValueError ('Output interval should not have finer precision than 1e-6 s' )
885- outputdt = output_file .outputdt if output_file else np .infty
885+ outputdt = output_file .outputdt if output_file else np .inf
886886 if isinstance (outputdt , delta ):
887887 outputdt = outputdt .total_seconds ()
888888 if isinstance (callbackdt , delta ):
@@ -920,19 +920,19 @@ def execute(self, pyfunc=AdvectionRK4, pyfunc_inter=None, endtime=None, runtime=
920920 self .particledata ._data ['dt' ][:] = dt
921921
922922 if callbackdt is None :
923- interupt_dts = [np .infty , outputdt ]
923+ interupt_dts = [np .inf , outputdt ]
924924 if self .repeatdt is not None :
925925 interupt_dts .append (self .repeatdt )
926926 callbackdt = np .min (np .array (interupt_dts ))
927927 time = starttime
928928 if self .repeatdt :
929929 next_prelease = self .repeat_starttime + (abs (time - self .repeat_starttime ) // self .repeatdt + 1 ) * self .repeatdt * np .sign (dt )
930930 else :
931- next_prelease = np .infty if dt > 0 else - np .infty
931+ next_prelease = np .inf if dt > 0 else - np .inf
932932 if output_file :
933933 next_output = time + dt
934934 else :
935- next_output = time + np .infty if dt > 0 else - np .infty
935+ next_output = time + np .inf if dt > 0 else - np .inf
936936 next_callback = time + callbackdt if dt > 0 else time - callbackdt
937937 next_input = self .fieldset .computeTimeChunk (time , np .sign (dt )) if self .fieldset is not None else np .inf
938938
0 commit comments