[Paraview] How to test for empty block in multi-block dataset

Andy Bauer andy.bauer at kitware.com
Wed Oct 18 10:44:17 EDT 2017


Hi Dennis,

I think something like:
if multiblock.GetBlock(i) != None:
  ...

should work. You probably don't even need the "!=None" part.

Cheers,
Andy

On Wed, Oct 18, 2017 at 10:41 AM, Dennis Conklin <
dennis_conklin at goodyear.com> wrote:

> P.S.  I’m writing python inside a Programmable Filter
>
>
>
> Thanks again
>
> Dennis
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171018/29ebd5df/attachment.html>


More information about the ParaView mailing list