Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316149 - would like to be able to specify an acceptable tolerance for numeric differences
Summary: would like to be able to specify an acceptable tolerance for numeric differences
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.4.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-08 10:56 EDT by David L. Paterline CLA
Modified: 2010-06-15 07:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David L. Paterline CLA 2010-06-08 10:56:21 EDT
Build Identifier: M20080911-1700

As I am doing a lot of scientific computing, I am using the compare tool for data files, some of which can be very large. To minimize the differences, I would like to be able to specify a tolerance within which a numerical difference would be ignored (or simply highlighted, rather than being called out as a difference). For example, ignore or highlight any numerical differences within 0.01% of the base value.

Reproducible: Always

Steps to Reproduce:
1. Compare any two nearly-identical data files with numerical differences.
Comment 1 Tomasz Zarna CLA 2010-06-15 07:05:35 EDT
To achieve that you will need to create your own token comparator by implementing the ITokenComparator interface. We do not plan to add such feature in Eclipse, so I guess you will also need to implement a content viewer for the data you're comparing. You can find more information on how to start here : http://help.eclipse.org/galileo/topic/org.eclipse.platform.doc.isv/guide/compare_contentviewer.htm