Opened 6 years ago

Closed 6 years ago

#1738 closed defect (fixed)

Petascope_Fix the problem with comparison of coefficients from WCST_Import

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.6
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

There is a problem with the comparison of coefficients from WCST_Import when importing a grib file of ECMF.

The result is double, e.g:

irregular datetime (arrow library).
0.04166666666666666666666666667

However, in Petascope, the coefficient is in BigDecimal and value is different, e.g:

0.04166666666666666666666666666666666666666666666667

So a fix needed to add a small epsilon number to consider both numbers are the same.

Change History (3)

comment:1 by Dimitar Misev, 6 years ago

add a small epsilon to what number?

in reply to:  1 comment:2 by Bang Pham Huu, 6 years ago

Replying to dmisev:

add a small epsilon to what number?

it will be fixed in Petascope add epsilon to BigDecimal to compare.

Last edited 6 years ago by Bang Pham Huu (previous) (diff)

comment:3 by Bang Pham Huu, 6 years ago

Component: wcst_importpetascope
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.