File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 _raise_field_out_of_bound_error ,
1616 _raise_field_out_of_bound_surface_error ,
1717 _raise_field_sampling_error ,
18- _raise_time_extrapolation_error ,
1918)
2019
2120from .basegrid import GridType
Original file line number Diff line number Diff line change @@ -814,10 +814,9 @@ def execute(
814814 time = start_time
815815
816816 for fld in [self .fieldset .U , self .fieldset .V ]: # TODO generalise to all fields and move to better place
817- fld ._time_float = (fld .data_full .time .data - fld .time_interval .left )/ np .timedelta64 (1 , "s" )
817+ fld ._time_float = (fld .data_full .time .data - fld .time_interval .left ) / np .timedelta64 (1 , "s" )
818818
819819 while sign_dt * (time - end_time ) < 0 :
820-
821820 for fld in [self .fieldset .U , self .fieldset .V ]: # TODO generalise to all fields
822821 ti = np .argmin (fld ._time_float <= self ._data ["time_nextloop" ][0 ]) - 1 # TODO also implement dt < 0
823822 if not hasattr (fld , "data" ) or fld .data_full .time .data [ti ] != fld .data .time .data [0 ]:
You can’t perform that action at this time.
0 commit comments