You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In a recent usage of odc compare to compare a reference file to a test output, I got file differ exception when two files differs by a tiny value in a column. While the exception is correct, the difference between the values is so small that the error message does not actually tell what it is:
000 2024-08-28 11:55:03 (I) Comparator::compare: (1) ref.odb to (2) out.odb
000 2024-08-28 11:55:08 (E) Exception: Values different in column obsbias: 0.00219108 is not equal 0.00219108
000 2024-08-28 11:55:08 (E)
000 2024-08-28 11:55:08 (I) While comparing rows number 3953389, columns 36 found different.
000 2024-08-28 11:55:08 (I) Values different in column obsbias: 0.00219108 is not equal 0.00219108
000 2024-08-28 11:55:08 (I) data1[36] = 2.191084e-03
000 2024-08-28 11:55:08 (I) data2[36] = 2.191084e-03
000 2024-08-28 11:55:08 (I) md1[36] = name: obsbias, type: REAL, codec: short_real2, range=<-1003.738464,5.535852>, hasMissing=false
000 2024-08-28 11:55:08 (I) md2[36] = name: obsbias, type: REAL, codec: short_real2, range=<-1003.738464,5.535852>, hasMissing=false
000 2024-08-28 11:55:08 (E) Exception: Files differ.
000 2024-08-28 11:55:08 (I) Comparing files ref.odb and out.odb: 4 seconds elapsed, 4 seconds cpu
000 2024-08-28 11:55:08 (E) ** Files differ. Caught in (/home/matt/opt/eckit/src/eckit/runtime/Tool.cc +32 start)
000 2024-08-28 11:55:08 (E) ** Exception terminates odc
Using odc sql to print out the columns in the files, I got this diff:
It would be desirable for odc compare to support a tolerance threshold that can be specified by the user, so negligible differences can be ignored and for odc compare to return a success (0). For example, this will be useful for comparing reference outputs and test outputs in CI tests on alternate platforms.
Describe alternatives you've considered
Otherwise, odc compare should print a better error message that prints the full significant figures.
Additional context
No response
Organisation
Met Office
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In a recent usage of
odc compare
to compare a reference file to a test output, I got file differ exception when two files differs by a tiny value in a column. While the exception is correct, the difference between the values is so small that the error message does not actually tell what it is:Using
odc sql
to print out the columns in the files, I got this diff:Describe the solution you'd like
It would be desirable for
odc compare
to support a tolerance threshold that can be specified by the user, so negligible differences can be ignored and forodc compare
to return a success (0). For example, this will be useful for comparing reference outputs and test outputs in CI tests on alternate platforms.Describe alternatives you've considered
Otherwise,
odc compare
should print a better error message that prints the full significant figures.Additional context
No response
Organisation
Met Office
The text was updated successfully, but these errors were encountered: