Dave Peterson | 1 Apr 01:59 2007

Re: latest enthought svn on Mac OS X

I think I have seen this problem before.  In my case it was related to 
trying to build inplace on different OSes using the same svn checkout 
directory.  Not running simultaneously on both OSes mind you. :-)

We need a better 'clean' step from our build tool.  Is the lack of ours 
related to not writing our build scripts properly or is it a lack of 
capability in distutils?

-- Dave

Travis Vaught wrote:
> On Mar 31, 2007, at 2:26 PM, Robert Kern wrote:
>
>   
>> Travis Vaught wrote:
>>     
>>> ...
>>> build/temp.macosx-10.3-fat-2.5/kiva/agg/src/kiva_rect.o" failed with
>>> exit status 1
>>>       
>> I don't see this. Can you try removing your build/ directory and  
>> then rebuilding?
>>
>> -- 
>> Robert Kern
>>
>>     
>
> That did the trick..%&$*#-distutils.
>
(Continue reading)

Robert Kern | 1 Apr 02:12 2007
Picon

Re: latest enthought svn on Mac OS X

Dave Peterson wrote:
> I think I have seen this problem before.  In my case it was related to 
> trying to build inplace on different OSes using the same svn checkout 
> directory.  Not running simultaneously on both OSes mind you. :-)
> 
> We need a better 'clean' step from our build tool.  Is the lack of ours 
> related to not writing our build scripts properly or is it a lack of 
> capability in distutils?

Both "rm -r build/" and "python setup.py clean" should have been fine. I don't
think either of these should be in the build_inplace scripts (and I wish they
wouldn't do what removing that they do; it's why I don't use them). If you want
to make a clean_all script, though, that would be fine.

--

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco
Prabhu Ramachandran | 1 Apr 18:51 2007
Picon

Re: [mv2] behavior of surface module (contours enabled) and multiscalars variable...

>>>>> "fred" == fred  <fredmfp@...> writes:

    >> Not quite but I think I understand what you want.  You want to
    >> display contours of one scalar on the isosurface of another.
    fred> Not really ;-)

    fred> I only want contours to be updated when you choose another
    fred> scalars data.

    fred> First: http://fredantispam.free.fr/snp1.png

    fred> Second: http://fredantispam.free.fr/snp2.png

    fred> Third: http://fredantispam.free.fr/snp3.png

Hmm, I can see how to fix it but the fix is a bit of a hack.  On the
interpreter drag the source and try this:

 d = _
 d.pipeline_changed = True

This fixes things but actually forces the entire downstream pipeline
to flush which is a bit much, but better slow and right than fast and
broken!  I'll check this in.  Please let me know if it fixes the
problem.

Sorry about the delayed response.  After a long while I was busy
hacking on my research code during the weekend.  Hopefully this week
I'll clean out my overflowing mailbox!

(Continue reading)

Prabhu Ramachandran | 1 Apr 19:46 2007
Picon

Re: [mv2] Loading a custom lookup/gradient table/CTF for volume visualization

>>>>> "Peter" == Peter Schmitt <pschmittml@...> writes:

    Peter> I want to load a custom gradient table color transfer
    Peter> function (*.grad file) via a MayaVi2 script.

Sorry for not answering any sooner.  For the purposes of this list
here is my response sent on mayavi-users to Peters earlier question:

http://sourceforge.net/mailarchive/forum.php?thread_name=17935.60109.402052.698251%40gargle.gargle.HOWL&forum_name=mayavi-users

and

http://sourceforge.net/mailarchive/forum.php?thread_name=17935.61149.998114.286671%40gargle.gargle.HOWL&forum_name=mayavi-users

cheers,
prabhu
Prabhu Ramachandran | 1 Apr 19:52 2007
Picon

Re: [mv2] Loading a custom lookup/gradient table/CTF for volume visualization

>>>>> "Peter" == Peter Schmitt <pschmittml@...> writes:

    Peter> If we think of the MayaVi2 "LUTManager" as a plugin, how do
    Peter> we fire the "LUTManager._lut_mode_changed" or
    Peter> "LUTManager.load_lut_from_file" from another plugin or
    Peter> external script?

Not sure about the exact context of what you want.  If this has to do
with changing the .grad file then I think that is solved.  LUTManager
is really not a plugin.  It is an object in the mayavi2 model and the
way to script it is like so (for example):

 o = Outline()
 mayavi.add_module(o)
 lm = o.module_manager.scalar_lut_manager 

Now you can script `lm` the way you want.  If you need to get to the
`mayavi` instance from a script then you can always get it like so:

from enthought.mayavi.services import IMAYAVI
from enthought.envisage import get_application
app = get_application()
mv = app.get_service(IMAYAVI)

cheers,
prabhu
Prabhu Ramachandran | 1 Apr 20:25 2007
Picon

Re: [mv2] ImagePlaneWidget & Light Manager...

>>>>> "Fred" == fred  <fredmfp@...> writes:

    Fred> Hi, I want to play with LightManager using ImagePlaneWidget
    Fred> module, but there is no effect.

    Fred> How can I play with lights on such a module ?

    Fred> Is it possible ?

Yes.  Try this:

 i = _
 p =  i.ipw.texture_plane_property
 p.ambient = 0.0

This should make the ipw behave like most other modules w.r.t
lighting.

cheers,
prabhu
fred | 2 Apr 00:04 2007
Picon

Re: [mv2] ImagePlaneWidget & Light Manager...

Prabhu Ramachandran a écrit :
> Yes.  Try this:
>   
Glad to hear you back ! :-)
>  i = _
>  p =  i.ipw.texture_plane_property
>  p.ambient = 0.0
Perfect !

I should have found it with explore() but I was missing
the keyword "texture_plane_property".

Thanks a lot.

--

-- 
http://scipy.org/FredericPetit
Prabhu Ramachandran | 2 Apr 14:41 2007
Picon

Spammer on prowl

Hi,

Some looser with a user name seekgzl has spammed some tickets assigned
to me.  Specifically these:

https://svn.enthought.com/enthought/ticket/252#comment:1
https://svn.enthought.com/enthought/ticket/193#comment:7
https://svn.enthought.com/enthought/ticket/1004#comment:2

Could someone please help?  Thanks.

prabhu
Prabhu Ramachandran | 2 Apr 14:56 2007
Picon

Re: [mv2] picking data on screen displays no scalar value...

>>>>> "Fred" == fred  <fredmfp@...> writes:

    Fred> Hi, When I press p or P on the screen (using
    Fred> example/contour.py for instance), I can get id & coordinates
    Fred> cell but no scalar value.

    Fred> What am I doing wrong ?

This was a bug.  I've fixed this in SVN.  Thanks for bringing it up!

cheers,
prabhu
fred | 2 Apr 18:45 2007
Picon

Re: [mv2] behavior of surface module (contours enabled) and multiscalars variable...

Prabhu Ramachandran a écrit :
> Hmm, I can see how to fix it but the fix is a bit of a hack.  On the
> interpreter drag the source and try this:
>
>  d = _
>  d.pipeline_changed = True
>
> This fixes things but actually forces the entire downstream pipeline
> to flush which is a bit much, but better slow and right than fast and
> broken!  I'll check this in.  Please let me know if it fixes the
> problem.
>   
Hmm, it seems that does not fix the issue.
I still have the same figure as seen in snp3.png :-(
> Sorry about the delayed response.  After a long while I was busy
> hacking on my research code during the weekend.  Hopefully this week
> I'll clean out my overflowing mailbox!
>   
No problem.

Cheers,

--

-- 
http://scipy.org/FredericPetit

Gmane