MantisBT - ParaView
View Issue Details
0009870ParaViewBugpublic2009-11-09 11:222011-01-13 17:00
Ken Moreland 
Ken Moreland 
normalminorhave not tried
closedfixed 
 
3.8 
0009870: CSV reader does not detect columns with non-finite numbers as numeric
When reading in CSV files, columns with integers and floating point numbers are automatically detected and converted to numeric values so that they may be processed. However, this detection breaks down if the column has non-finite values like NaN (not a number) or INF (infinity). These numbers should be considered floating point values and read in as such.
This problem has recently become much more serious as the ParaView probe filter now writes out nan's whenever sampling a point outside the mesh or whenever a field is not available. The easiest way to replicate the problem is to use the Plot Over Line filter when the line extends outside of the mesh (which is usually done by simply hitting one of the Axis buttons. (This is how the attached example file was created.) Save out the CSV and note that nan values are written out in the field columns. Read the CSV file back in and see that the field values are now stored in strings.
No tags attached.
csv nancolumn.csv (2,492) 2009-11-09 11:22
https://www.vtk.org/Bug/file/7642/nancolumn.csv
Issue History
2009-11-09 11:22Ken MorelandNew Issue
2009-11-09 11:22Ken MorelandFile Added: nancolumn.csv
2009-11-09 18:04Ken MorelandStatusbacklog => tabled
2009-11-09 18:04Ken MorelandAssigned To => Ken Moreland
2009-11-12 08:51Ken MorelandNote Added: 0018400
2009-11-12 08:51Ken MorelandStatustabled => @80@
2009-11-12 08:51Ken MorelandResolutionopen => fixed
2009-12-02 20:52Alan ScottNote Added: 0018682
2009-12-02 20:52Alan ScottStatus@80@ => closed
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709

Notes
(0018400)
Ken Moreland   
2009-11-12 08:51   
/cvsroot/ParaView3/ParaView3/VTK/Common/vtkVariant.cxx,v <-- vtkVariant.cxx
new revision: 1.40; previous revision: 1.39
(0018682)
Alan Scott   
2009-12-02 20:52   
Works great! Tested local server.