View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011200ParaViewFeaturepublic2010-09-01 13:152010-09-15 22:05
ReporterUtkarsh Ayachit 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.10 
Summary0011200: Document exporting to CSV from python
DescriptionDocument exporting to CSV from python:

From Alan:
For (dozens of times)
 Open same file
 Plot over line, slightly different line placement
 Integrate 2d plot
 Output data to spreadsheet view
 Export file to .csv file.

This really is the only case I can think of for python and spreadsheet view - trying to format data such that you can export it to a csv file. But, to be able to output a filters output to a .csv file, this is the only way I know how...
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships
duplicate of 0011151closedUtkarsh Ayachit Trace recorder does not export correctly 
related to 0011150closedAlan Scott Python Trace Recorder does not handle spreadsheet correctly 

  Notes
(0022236)
Utkarsh Ayachit (administrator)
2010-09-15 16:56

commit 7c6c6211c95526af4a2ba22f901dc9b65cfc7fe0
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Wed Sep 15 16:54:45 2010 -0400

    Added CreateWriter function to use writer factory to create a writer.
    
    This makes it easier to create writer based on the filename for writing a
    dataset using the same logic that the GUI does to decide available writers.


-------------------------------------------------------------------------------
Exporting CSV Data

To export a csv from the cell or point data associated with a source, one can use the following:
>>> writer = CreateWriter(".../foo.csv", source)
>>> writer.FieldAssociation = "Points" # or "Cells"
>>> writer.UpdatePipeline()
>>> del writer

Added to Wiki:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data [^]
(0022248)
Alan Scott (manager)
2010-09-15 22:05

I find this an acceptable solution, since this case is probably fairly rare.

Looked at the web page.

 Issue History
Date Modified Username Field Change
2010-09-01 13:15 Utkarsh Ayachit New Issue
2010-09-01 13:15 Utkarsh Ayachit Relationship added related to 0011150
2010-09-15 16:56 Utkarsh Ayachit Note Added: 0022236
2010-09-15 16:56 Utkarsh Ayachit Status backlog => @80@
2010-09-15 16:56 Utkarsh Ayachit Fixed in Version => 3.10
2010-09-15 16:56 Utkarsh Ayachit Resolution open => fixed
2010-09-15 16:56 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2010-09-15 22:05 Alan Scott Note Added: 0022248
2010-09-15 22:05 Alan Scott Status @80@ => closed
2010-09-15 22:11 Alan Scott Relationship added duplicate of 0011151
2011-06-16 13:10 Zack Galbreath Category Feature Request => Feature


Copyright © 2000 - 2018 MantisBT Team