[mayavi] Threshold filter issue...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[mayavi] Threshold filter issue...

fred-2
Hi all

I still have this kind of very annoing issue today and got not answer
since...

If someone could help me...

Thanks in advance.

https://mail.enthought.com/pipermail/enthought-dev/2010-August
/027053.html

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] Threshold filter issue...

Gael Varoquaux
On Thu, Jan 27, 2011 at 03:42:48PM +0100, Fred wrote:
> I still have this kind of very annoing issue today and got not answer
> since...

> If someone could help me...

> Thanks in advance.

> https://mail.enthought.com/pipermail/enthought-dev/2010-August

Tried to spend some time on that today but I can't reproduce.

An issue is that your example is actually quite lengthy, requires
external data files, and has many lines that are not clearly related to
the problem. As a result, it did not run on my box (numpyio does not
exist in recent versions of scipy. I tried to replace it with synthetic
data, based on my understanding of the problem, but couldn't reproduce. I
am not sure whether it means that the bug has disappeared.

G
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] Threshold filter issue...

fred-2
Le 17/04/2011 17:47, Gael Varoquaux a écrit :

> On Thu, Jan 27, 2011 at 03:42:48PM +0100, Fred wrote:
>> I still have this kind of very annoing issue today and got not answer
>> since...
>
>> If someone could help me...
>
>> Thanks in advance.
>
>> https://mail.enthought.com/pipermail/enthought-dev/2010-August
>
> Tried to spend some time on that today but I can't reproduce.
>
> An issue is that your example is actually quite lengthy, requires
> external data files, and has many lines that are not clearly related to
> the problem. As a result, it did not run on my box (numpyio does not
> exist in recent versions of scipy. I tried to replace it with synthetic
> data, based on my understanding of the problem, but couldn't reproduce. I
> am not sure whether it means that the bug has disappeared.
Hi Gaël,

It should now.

It works without external data files.

I still have the same issue:

Traceback (most recent call last):
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_notifiers.py",
line 505, in rebind_call_0
     self.dispatch( getattr( self.object(), self.name ) )
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_notifiers.py",
line 448, in dispatch
     handler( *args )
   File
"/usr/local/lib/python2.6/dist-packages/mayavi-4.0.1-py2.6-linux-x86_64.egg/mayavi/filters/threshold.py",
line 158, in update_data
     self._update_ranges()
   File
"/usr/local/lib/python2.6/dist-packages/mayavi-4.0.1-py2.6-linux-x86_64.egg/mayavi/filters/threshold.py",
line 194, in _update_ranges
     trait_change_notify=notify)
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/has_traits.py",
line 1928, in trait_set
     setattr( self, name, value )
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_types.py",
line 1775, in _set
     self.error( object, name, value )
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_handlers.py",
line 168, in error
     value )
TraitError: The 'lower_threshold' trait of a Threshold instance must be
2.0 <= a number <= 0.999795794487, but a value of 2.0 <type 'float'> was
specified.
vmin, vmax: 2.0 2.0
threshold: 2.0 2.0
Exception occurred in traits notification handler for object:
<__main__.Mayavi object at 0x51f5470>, trait: vectors1_button, old
value: <undefined>, new value: 0
Traceback (most recent call last):
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_notifiers.py",
line 360, in call_1
     self.handler( object )
   File "./cme.py", line 115, in _vectors1_button_fired
     self.update_vectors(self.vectors1_array)
   File "./cme.py", line 107, in update_vectors
     self.threshold_filter.lower_threshold = vmin
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_types.py",
line 1775, in _set
     self.error( object, name, value )
   File
"/usr/local/lib/python2.6/dist-packages/traits-4.0.1-py2.6-linux-x86_64.egg/traits/trait_handlers.py",
line 168, in error
     value )
TraitError: The 'lower_threshold' trait of a Threshold instance must be
2.0 <= a number <= 0.999795794487, but a value of 2.0 <type 'float'> was
specified.


TIA


Cheers,

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] Threshold filter issue...

fred-2
Hi all,

I've posted these two issues last month, but got no answer...

Can somebody help me on these issues?

https://mail.enthought.com/pipermail/enthought-dev/2011-August/029561.html
https://mail.enthought.com/pipermail/enthought-dev/2011-August/029564.html

TIA

Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev