Behavior of h5diff when --delta and --relative both provided?

'Afternoon,

What's the behavior of h5diff when both --delta=something and
--relative=something else are provided at the same time?
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Diff says they
are mutually exclusive. Does the last option provided "win"? The
first?

- Rhys

Hi Rhys,

The web document is updated based on HDF5 1.8.8 release.
So if you are using h5diff from 1.8.8, '--delta=something' and '--relative=something' options are mutually exclusive and h5diff will display error message "h5diff error: -d, -p and --use-system-epsilon options are mutually-exclusive; use no more than one." if specified them together at once.

However if you are using h5diff from 1.8.7 or older, '--relative=something' (-p) win over '--delta=something' (-d) for displaying output , but that's not what's intended behavior and got updated for 1.8.8.

We recommend to use h5diff from 1.8.8 release not to be confused.

Thanks,

Jonathan

···

On 3/13/2012 2:07 PM, Rhys Ulerich wrote:

'Afternoon,

What's the behavior of h5diff when both --delta=something and
--relative=something else are provided at the same time?
http://www.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Diff says they
are mutually exclusive. Does the last option provided "win"? The
first?

- Rhys

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Jonathan,

So if you are using h5diff from 1.8.8, '--delta=something' and
'--relative=something' options are mutually exclusive and h5diff will
display error message "h5diff error: -d, -p and --use-system-epsilon
options are mutually-exclusive; use no more than one." if specified them
together at once.

Thanks for clarifying. I'll stop using both at the same time. :slight_smile:

Sometimes supplying both and getting a logical OR would be helpful.
That is, if you wanted a "pass" if either the --delta or the
--relative criteria matched. Cases like when some values in a dataset
are large (and so relative is handy) and some are near zero (so delta
is handy).

- Rhys

Hi Rhys,

Hi Jonathan,

So if you are using h5diff from 1.8.8, '--delta=something' and
'--relative=something' options are mutually exclusive and h5diff will
display error message "h5diff error: -d, -p and --use-system-epsilon
options are mutually-exclusive; use no more than one." if specified them
together at once.

Thanks for clarifying. I'll stop using both at the same time. :slight_smile:

Sometimes supplying both and getting a logical OR would be helpful.
That is, if you wanted a "pass" if either the --delta or the
--relative criteria matched. Cases like when some values in a dataset
are large (and so relative is handy) and some are near zero (so delta
is handy).

Will keep that in mind. Thanks for your input!

Jonathan

···

On 3/14/2012 12:52 PM, Rhys Ulerich wrote:

- Rhys

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org