Thank you for the help, that seemed to work.
I was under the impression from this thread that pygwy cannot be used in a
standalone python script:
http://www.mail-archive.com/[email protected]/msg00494.html
Perhaps this limitation has changed since that was written?
Are there instructions for using pygwy in this way? I tried adding both
/usr/lib/gwyddion/modules/ (where my pygwy.so file is located) and
/usr/share/gwyddion/pygwy/ (where gwyutils is located) to my PYTHONPATH
variable. However, I get
ImportError: No module named gwy
if I try to import gwy.
Thank you!
Dave Doty
On Tue, Oct 8, 2013 at 6:33 AM, David Nečas (Yeti) <[email protected]>wrote:
> On Mon, Oct 07, 2013 at 05:41:56PM -0700, Dave Doty wrote:
> > What appears to happen is that the Datafield method fit_lines is called
> > properly on all opened windows. However, the two invocations to
> > gwy.gwy_process_func_run do not work on any open window, except the one
> > that is active when I start the batch processing.
>
> Using module functions on non-current data is tricky. I modified you
> script so that it works – the key was adding a
> gwy_app_data_browser_select_data_field() call – but note that running
> processing modules on data that are not displayed in any window may not
> work.
>
> It might be better to do similar processing outside Gwyddion such as in
>
> https://sourceforge.net/p/gwyddion/mailman/message/30725548/
>
> unless, of course, you want to open interactively the data and then run
> the script on them.
>
> Regards,
>
> Yeti
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Gwyddion-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gwyddion-users
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users