modelica-tools / csv-compare

Tool to compare curves from one csv files with curves from other csv files using an adjustable tolerance
https://www.modelica.org
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

NaN and Infinity support #57

Open alexs1000 opened 4 years ago

alexs1000 commented 4 years ago

Is there any chance that the support for NaN and Infinity will improve in the near future? In the case of NaN an error is thrown, but for Infinity the behavior is different depending where the Infinity is present, in the base.csv or in the to_compare.csv.

beutlich commented 4 years ago

Never notices this "feature" so far. Can you please add the files with Nan or Infinity and what your expectation is for the different use cases.

alexs1000 commented 4 years ago

Nan_inf_base.txt Nan_inf_compare.txt The expectation would be that the values in the 2 files be compared, even for Infinity or NaN values. So for example, comparing the base file Nan_inf_base with a copy of itself should indicate that there are no differences between the files. On the other hand if there are differences, this should be signaled.

andreas-junghanns commented 3 years ago

@beutlich : Is there any hope of this being implemented?