Skip to content

Commit

Permalink
Fix atomic_orbital.py example.
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuramachandran committed Apr 16, 2014
1 parent 6b3163c commit edf6ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/mayavi/mlab/atomic_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# We need to give a name to our new dataset.
src.image_data.point_data.get_array(1).name = 'angle'
# Make sure that the dataset is up to date with the different arrays:
src.image_data.point_data.update()
src.update()

# We select the 'scalar' attribute, ie the norm of Phi
src2 = mlab.pipeline.set_active_attribute(src,
Expand Down
2 changes: 1 addition & 1 deletion mayavi/sources/array_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def update(self):
pd.scalars.modified()
if self.vector_data is not None:
pd.vectors.modified()
self.change_information_filter.update()
self.data_changed = True

######################################################################
Expand Down Expand Up @@ -261,4 +262,3 @@ def _transpose_input_array_changed(self, value):

def _information_changed(self):
self.data_changed = True

0 comments on commit edf6ae9

Please sign in to comment.