Skip to content

Commit f161be7

Browse files
committed
remove intepolation bounds
1 parent 3c7575f commit f161be7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/msrDynamics/_msrDynamics.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,6 @@ def _solve_with_trip_conditions(self, times, md_step):
394394

395395
# bounds for inteprolation
396396

397-
interp_start = times[0] + np.abs(trip_obj.check_after) if trip_obj.check_after else times[0]
398-
interp_end = state[-1].time
399397
if self.trip_info['type'] == 'diff_rel':
400398
# set up new spline for fractional derivative and interpolate
401399
times_dr = np.array([s.time for s in state])
@@ -412,10 +410,10 @@ def _solve_with_trip_conditions(self, times, md_step):
412410
dr_spline = chspy.CubicHermiteSpline(n=1, anchors=anchors_dr)
413411
trip_sol = dr_spline.solve(0,
414412
self.trip_info['limit'],
415-
solve_derivative = False,
416-
beginning = interp_start,
417-
end = interp_end)
413+
solve_derivative = False,)
418414
else:
415+
interp_start = times[0] + np.abs(trip_obj.check_after) if trip_obj.check_after else times[0]
416+
interp_end = state[-1].time
419417
solve_diff = True if self.trip_info['type'] == 'diff' else False
420418
trip_sol = state.solve(self.trip_info['idx'],
421419
self.trip_info['limit'],

0 commit comments

Comments
 (0)