[visit-users] queries in the python interface

Brad Whitlock whitlock2 at llnl.gov
Mon Mar 29 14:26:04 EDT 2010


Hi Valmor,
    Try this:

Query("QueryName")
tmp = GetQueryOutputValue()

>Hello,
>
>How can grab the information from Query("QueryName") into a variable.
>Say, this does not work:
>
>>>>  tmp = Query("Centroid")
>VisIt: Message - Centroid = (0.00215143, -2.89472, 0.0108211)
>>>>  tmp
>1L
>
>Alternatively if I could get the value of NumNodes from
>Query("NumNodes") that should enable me to loop over the nodes and
>compute the centroid.
>
>In addition, I would like to query the name of the atom the node is
>associated to. Here the data is a molecule in pdb format.
>
>Thanks,
>
>--
>Valmor
>--
>List subscription information: 
>https://*email.ornl.gov/mailman/listinfo/visit-users
>Searchable list archives: https://*email.ornl.gov/pipermail/visit-users
>VisIt Users Wiki: http://*visitusers.org/
>Frequently Asked Questions for VisIt: http://*visit.llnl.gov/FAQ.html


-- 
======================================================================
Brad Whitlock                   Lawrence Livermore National Laboratory
whitlock2 at llnl.gov
(925)424-2614
======================================================================


More information about the visit-users mailing list