[Paraview] Name query from multi-block data in Python

2010-02-27 Thread bastil2...@yahoo.de
Hi,

I use python to extract blocks of a multi-block dataset. In both 3.6.2
and 3.7-dev I can do:

http://www.cmake.org/Wiki/Extracting_Multiple_Blocks

However it was discussed it will be easier in 3.8?
IS there an opportunity to query for names in an multiblock-dataset with
deepth > 1? The link below works e.g. for Ensight Reader inputs since it
is of deepth 1 but not for mutliblock data with larger deepth.

Thanks Basti
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Name query from multi-block data in Python

2010-03-01 Thread Berk Geveci
Yes. If one of the first level children is a multi-block dataset, you can do
something like:

dataInformation.GetCompositeDataInformation().GetDataInformation(i).GetCompositeDataInformation().GetInformation(j)

-berk

On Sat, Feb 27, 2010 at 5:33 AM, bastil2...@yahoo.de wrote:

> Hi,
>
> I use python to extract blocks of a multi-block dataset. In both 3.6.2
> and 3.7-dev I can do:
>
> http://www.cmake.org/Wiki/Extracting_Multiple_Blocks
>
> However it was discussed it will be easier in 3.8?
> IS there an opportunity to query for names in an multiblock-dataset with
> deepth > 1? The link below works e.g. for Ensight Reader inputs since it
> is of deepth 1 but not for mutliblock data with larger deepth.
>
> Thanks Basti
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Name query from multi-block data in Python

2010-03-01 Thread Utkarsh Ayachit
Alternatively you can use the vtkPVCompositeDataInformationIterator to
iterate over the blocks as well. It has a method GetCurrentName()
which can be used to obtain the name of the current block.

Utkarsh

On Mon, Mar 1, 2010 at 6:40 AM, Berk Geveci  wrote:
> Yes. If one of the first level children is a multi-block dataset, you can do
> something like:
>
> dataInformation.GetCompositeDataInformation().GetDataInformation(i).GetCompositeDataInformation().GetInformation(j)
>
> -berk
>
> On Sat, Feb 27, 2010 at 5:33 AM, bastil2...@yahoo.de 
> wrote:
>>
>> Hi,
>>
>> I use python to extract blocks of a multi-block dataset. In both 3.6.2
>> and 3.7-dev I can do:
>>
>> http://www.cmake.org/Wiki/Extracting_Multiple_Blocks
>>
>> However it was discussed it will be easier in 3.8?
>> IS there an opportunity to query for names in an multiblock-dataset with
>> deepth > 1? The link below works e.g. for Ensight Reader inputs since it
>> is of deepth 1 but not for mutliblock data with larger deepth.
>>
>> Thanks Basti
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Name query from multi-block data in Python

2010-03-01 Thread bastil2...@yahoo.de
Thanks. Can this be done from within Python?

Regards Bastian

Am 01.03.2010 15:10, schrieb Utkarsh Ayachit:
> Alternatively you can use the vtkPVCompositeDataInformationIterator to
> iterate over the blocks as well. It has a method GetCurrentName()
> which can be used to obtain the name of the current block.
>
> Utkarsh
>
> On Mon, Mar 1, 2010 at 6:40 AM, Berk Geveci  wrote:
>   
>> Yes. If one of the first level children is a multi-block dataset, you can do
>> something like:
>>
>> dataInformation.GetCompositeDataInformation().GetDataInformation(i).GetCompositeDataInformation().GetInformation(j)
>>
>> -berk
>>
>> On Sat, Feb 27, 2010 at 5:33 AM, bastil2...@yahoo.de 
>> wrote:
>> 
>>> Hi,
>>>
>>> I use python to extract blocks of a multi-block dataset. In both 3.6.2
>>> and 3.7-dev I can do:
>>>
>>> http://www.cmake.org/Wiki/Extracting_Multiple_Blocks
>>>
>>> However it was discussed it will be easier in 3.8?
>>> IS there an opportunity to query for names in an multiblock-dataset with
>>> deepth > 1? The link below works e.g. for Ensight Reader inputs since it
>>> is of deepth 1 but not for mutliblock data with larger deepth.
>>>
>>> Thanks Basti
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>   
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>> 
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>   

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Name query from multi-block data in Python

2010-03-02 Thread Utkarsh Ayachit
Yea, I don;t see why not. You can create the iterator as follows:

> from paraview.simple import *
> iter = servermanager.vtkPVCompositeDataInformationIterator()


Utkarsh

On Mon, Mar 1, 2010 at 5:04 PM, bastil2...@yahoo.de  wrote:
> Thanks. Can this be done from within Python?
>
> Regards Bastian
>
> Am 01.03.2010 15:10, schrieb Utkarsh Ayachit:
>> Alternatively you can use the vtkPVCompositeDataInformationIterator to
>> iterate over the blocks as well. It has a method GetCurrentName()
>> which can be used to obtain the name of the current block.
>>
>> Utkarsh
>>
>> On Mon, Mar 1, 2010 at 6:40 AM, Berk Geveci  wrote:
>>
>>> Yes. If one of the first level children is a multi-block dataset, you can do
>>> something like:
>>>
>>> dataInformation.GetCompositeDataInformation().GetDataInformation(i).GetCompositeDataInformation().GetInformation(j)
>>>
>>> -berk
>>>
>>> On Sat, Feb 27, 2010 at 5:33 AM, bastil2...@yahoo.de 
>>> wrote:
>>>
 Hi,

 I use python to extract blocks of a multi-block dataset. In both 3.6.2
 and 3.7-dev I can do:

 http://www.cmake.org/Wiki/Extracting_Multiple_Blocks

 However it was discussed it will be easier in 3.8?
 IS there an opportunity to query for names in an multiblock-dataset with
 deepth > 1? The link below works e.g. for Ensight Reader inputs since it
 is of deepth 1 but not for mutliblock data with larger deepth.

 Thanks Basti
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>>>
>>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at 
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: 
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview