From matthieu.vitse.sciviz at gmail.com Tue Nov 20 11:06:22 2018 From: matthieu.vitse.sciviz at gmail.com (Matthieu Vitse) Date: Tue, 20 Nov 2018 17:06:22 +0100 Subject: [Tomviz] python + tomviz Message-ID: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> Hi all, I?m trying to get my hands into the Python scripting in Tomviz, as I usually do with ParaView, but i?m having some troubles finding info about that. Do you have any samples of scripting for opening/closing datasets, doing basic operations so I can work from that? also, I really like the python recording (trace) feature in ParaView, is there any equivalent? Thank you! ? Matt From marcus.hanwell at kitware.com Tue Nov 20 11:25:28 2018 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 20 Nov 2018 11:25:28 -0500 Subject: [Tomviz] python + tomviz In-Reply-To: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> References: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> Message-ID: Hi Matt, The scripting in Tomviz, and the pipeline in general, are quite different to ParaView. We do not have a Python trace functionality at present, and scripting is generally done in the operators but not for the application at the present time. You can see many examples of Python for data operations, and they can all be modified. You can save and restore state, and inspect the JSON. I am hoping to add some of the scripting capabilities found in Python for building pipelines etc, but that infrastructure is not entirely general and so it requires some work to support the concepts developed for use in Tomviz pipelines. Thanks, Marcus On Tue, Nov 20, 2018 at 11:06 AM Matthieu Vitse < matthieu.vitse.sciviz at gmail.com> wrote: > Hi all, > > I?m trying to get my hands into the Python scripting in Tomviz, as I > usually do with ParaView, but i?m having some troubles finding info about > that. Do you have any samples of scripting for opening/closing datasets, > doing basic operations so I can work from that? > > also, I really like the python recording (trace) feature in ParaView, is > there any equivalent? > > Thank you! > > ? > Matt > _______________________________________________ > Tomviz mailing list > Tomviz at public.kitware.com > https://public.kitware.com/mailman/listinfo/tomviz > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthieu.vitse.sciviz at gmail.com Tue Nov 20 11:33:33 2018 From: matthieu.vitse.sciviz at gmail.com (Matthieu Vitse) Date: Tue, 20 Nov 2018 17:33:33 +0100 Subject: [Tomviz] python + tomviz In-Reply-To: References: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> Message-ID: <207E94BE-3773-431E-BAAD-F90F441588EE@gmail.com> Hi Marcus, Thank you for your quick answer. I guess that writing parametric state files will do what I need, thanks for the suggestion! ? Matt > Le 20 nov. 2018 ? 17:25, Marcus D. Hanwell a ?crit : > > Hi Matt, > > The scripting in Tomviz, and the pipeline in general, are quite different to ParaView. We do not have a Python trace functionality at present, and scripting is generally done in the operators but not for the application at the present time. You can see many examples of Python for data operations, and they can all be modified. You can save and restore state, and inspect the JSON. > > I am hoping to add some of the scripting capabilities found in Python for building pipelines etc, but that infrastructure is not entirely general and so it requires some work to support the concepts developed for use in Tomviz pipelines. > > Thanks, > > Marcus > > On Tue, Nov 20, 2018 at 11:06 AM Matthieu Vitse > wrote: > Hi all, > > I?m trying to get my hands into the Python scripting in Tomviz, as I usually do with ParaView, but i?m having some troubles finding info about that. Do you have any samples of scripting for opening/closing datasets, doing basic operations so I can work from that? > > also, I really like the python recording (trace) feature in ParaView, is there any equivalent? > > Thank you! > > ? > Matt > _______________________________________________ > Tomviz mailing list > Tomviz at public.kitware.com > https://public.kitware.com/mailman/listinfo/tomviz -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Tue Nov 20 11:36:28 2018 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 20 Nov 2018 11:36:28 -0500 Subject: [Tomviz] python + tomviz In-Reply-To: <207E94BE-3773-431E-BAAD-F90F441588EE@gmail.com> References: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> <207E94BE-3773-431E-BAAD-F90F441588EE@gmail.com> Message-ID: Hi Matt, Another really cool new feature that may be of interest is running the data operator pipeline in Docker/a separate Python. It is not fully functional yet, but once complete you can save JSON pipelines for data operators out, and run them on as many inputs as required, even rewriting the pipeline values if desired. We haven't talked about this much yet as it is not complete, but it may do some of what you want. Best, Marcus On Tue, Nov 20, 2018 at 11:33 AM Matthieu Vitse < matthieu.vitse.sciviz at gmail.com> wrote: > Hi Marcus, > > Thank you for your quick answer. I guess that writing parametric state > files will do what I need, thanks for the suggestion! > > ? > Matt > > Le 20 nov. 2018 ? 17:25, Marcus D. Hanwell a > ?crit : > > Hi Matt, > > The scripting in Tomviz, and the pipeline in general, are quite different > to ParaView. We do not have a Python trace functionality at present, and > scripting is generally done in the operators but not for the application at > the present time. You can see many examples of Python for data operations, > and they can all be modified. You can save and restore state, and inspect > the JSON. > > I am hoping to add some of the scripting capabilities found in Python for > building pipelines etc, but that infrastructure is not entirely general and > so it requires some work to support the concepts developed for use in > Tomviz pipelines. > > Thanks, > > Marcus > > On Tue, Nov 20, 2018 at 11:06 AM Matthieu Vitse < > matthieu.vitse.sciviz at gmail.com> wrote: > >> Hi all, >> >> I?m trying to get my hands into the Python scripting in Tomviz, as I >> usually do with ParaView, but i?m having some troubles finding info about >> that. Do you have any samples of scripting for opening/closing datasets, >> doing basic operations so I can work from that? >> >> also, I really like the python recording (trace) feature in ParaView, is >> there any equivalent? >> >> Thank you! >> >> ? >> Matt >> _______________________________________________ >> Tomviz mailing list >> Tomviz at public.kitware.com >> https://public.kitware.com/mailman/listinfo/tomviz >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthieu.vitse.sciviz at gmail.com Wed Nov 21 07:45:33 2018 From: matthieu.vitse.sciviz at gmail.com (Matthieu Vitse) Date: Wed, 21 Nov 2018 13:45:33 +0100 Subject: [Tomviz] python + tomviz In-Reply-To: References: <9E4E973F-4586-48E2-88AB-93F334FB95BA@gmail.com> <207E94BE-3773-431E-BAAD-F90F441588EE@gmail.com> Message-ID: Hi Marcus, alright I?ll look at that, and try to make it work, if not I?ll probably get back to you for some more advice :) Cheers, ? Matt > Le 20 nov. 2018 ? 17:36, Marcus D. Hanwell a ?crit : > > Hi Matt, > > Another really cool new feature that may be of interest is running the data operator pipeline in Docker/a separate Python. It is not fully functional yet, but once complete you can save JSON pipelines for data operators out, and run them on as many inputs as required, even rewriting the pipeline values if desired. We haven't talked about this much yet as it is not complete, but it may do some of what you want. > > Best, > > Marcus > > On Tue, Nov 20, 2018 at 11:33 AM Matthieu Vitse > wrote: > Hi Marcus, > > Thank you for your quick answer. I guess that writing parametric state files will do what I need, thanks for the suggestion! > > ? > Matt > >> Le 20 nov. 2018 ? 17:25, Marcus D. Hanwell > a ?crit : >> >> Hi Matt, >> >> The scripting in Tomviz, and the pipeline in general, are quite different to ParaView. We do not have a Python trace functionality at present, and scripting is generally done in the operators but not for the application at the present time. You can see many examples of Python for data operations, and they can all be modified. You can save and restore state, and inspect the JSON. >> >> I am hoping to add some of the scripting capabilities found in Python for building pipelines etc, but that infrastructure is not entirely general and so it requires some work to support the concepts developed for use in Tomviz pipelines. >> >> Thanks, >> >> Marcus >> >> On Tue, Nov 20, 2018 at 11:06 AM Matthieu Vitse > wrote: >> Hi all, >> >> I?m trying to get my hands into the Python scripting in Tomviz, as I usually do with ParaView, but i?m having some troubles finding info about that. Do you have any samples of scripting for opening/closing datasets, doing basic operations so I can work from that? >> >> also, I really like the python recording (trace) feature in ParaView, is there any equivalent? >> >> Thank you! >> >> ? >> Matt >> _______________________________________________ >> Tomviz mailing list >> Tomviz at public.kitware.com >> https://public.kitware.com/mailman/listinfo/tomviz > -------------- next part -------------- An HTML attachment was scrubbed... URL: