File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
anise/src/naif/daf/datatypes Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,8 @@ impl<'a> NAIFDataSet<'a> for HermiteSetType13<'a> {
269
269
// Start by doing a binary search on the epoch registry to limit the search space in the total number of epochs.
270
270
// TODO: use the epoch registry to reduce the search space
271
271
// Check that we even have interpolation data for that time
272
- if epoch. to_et_seconds ( ) + 1e-9 < self . epoch_data [ 0 ]
273
- || epoch. to_et_seconds ( ) - 1e-9 > * self . epoch_data . last ( ) . unwrap ( )
272
+ if epoch. to_et_seconds ( ) < self . epoch_data [ 0 ] - 1e-7
273
+ || epoch. to_et_seconds ( ) > * self . epoch_data . last ( ) . unwrap ( ) + 1e-7
274
274
{
275
275
return Err ( InterpolationError :: NoInterpolationData {
276
276
req : epoch,
Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ impl<'a> NAIFDataSet<'a> for LagrangeSetType9<'a> {
215
215
// Start by doing a binary search on the epoch registry to limit the search space in the total number of epochs.
216
216
// TODO: use the epoch registry to reduce the search space
217
217
// Check that we even have interpolation data for that time
218
- if epoch. to_et_seconds ( ) + 1e-9 < self . epoch_data [ 0 ]
219
- || epoch. to_et_seconds ( ) - 1e-9 > * self . epoch_data . last ( ) . unwrap ( )
218
+ if epoch. to_et_seconds ( ) < self . epoch_data [ 0 ] - 1e-7
219
+ || epoch. to_et_seconds ( ) > * self . epoch_data . last ( ) . unwrap ( ) + 1e-7
220
220
{
221
221
return Err ( InterpolationError :: NoInterpolationData {
222
222
req : epoch,
You can’t perform that action at this time.
0 commit comments