Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(176)

Issue 88095: get_vtk_src (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 10 months ago by Gael.Varoquaux
Modified:
14 years, 4 months ago
Reviewers:
prabhu
Base URL:
https://svn.enthought.com/svn/enthought/Mayavi/trunk/
Visibility:
Public.

Description

refactor find_data to get_vtk_src, and expose it.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -31 lines) Patch
enthought/mayavi/tools/helper_functions.py View 1 chunk +2 lines, -2 lines 0 comments Download
enthought/mayavi/tools/pipeline.py View 1 chunk +2 lines, -1 line 0 comments Download
enthought/mayavi/tools/tools.py View 4 chunks +34 lines, -28 lines 4 comments Download

Messages

Total messages: 3
Gael.Varoquaux
14 years, 10 months ago (2009-07-05 19:33:51 UTC) #1
Gael.Varoquaux
14 years, 10 months ago (2009-07-05 19:34:43 UTC) #2
prabhu
14 years, 9 months ago (2009-07-07 17:00:44 UTC) #3
Thanks for the patch, looks OK except for my comments.  Please address those and
checkin.  Thanks.

http://codereview.appspot.com/88095/diff/1/4
File enthought/mayavi/tools/tools.py (right):

http://codereview.appspot.com/88095/diff/1/4#newcode108
Line 108: def get_vtk_src(mayavi_object, filter_ok=True):
I don't like "filter_ok", "stop_at_filter" sounds better.

http://codereview.appspot.com/88095/diff/1/4#newcode116
Line 116: :filter_ok: optionnal boolean flag: if True, the first object
spelling: optional

http://codereview.appspot.com/88095/diff/1/4#newcode128
Line 128: This function traverses the Mayavi pipeline. Thus the input
please clarify what you mean by "the input object" by referring to the
`mayavi_object`.

http://codereview.appspot.com/88095/diff/1/4#newcode133
Line 133: raise TypeError, 'Cannot find data source for given object'
Perhaps the error message can be
'Cannot find data source for given %s'%(mayavi_object)
or something more informative.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b