Hi everyone,

I'd like to create a script which allows me to do some basic stuff like
calculating a height distributiona and then fitting a gaussian to this
data on a lot of data sets. So doing it manually is not an option.
I found two modules who could be usefull for this:
stats and sfunctions
but the problem is, Gwyddion crashes without any error message or
something similar when I call these modules. I checked other modules
like the "fft" which works fine and without problems. I added a sample
script in the attachement. It would be nice if someone could say
something on this.

Btw. using the implemented function "dh" of the DataField was not
suitable up to now because I'd like to do some more data processing
befor I want to save the solution somewhere and up to now I didn't find
a way to get a DataLine into a Graph or something similar... :-( So a
hint on this would be helpfull, too.

Regards,
Denny

-- 
Dr. Denny Köhler
Institute of Applied Photophysics (IAPP)
Technische Universität Dresden
George-Bähr-Straße 1
D-01069 Dresden
Germany
Tel.:  +49-351-4633-3740
Fax.:  +49-351-4633-7065
e-mail: [email protected]
import gwy

# I load my data
gwy_app_file_load('AFM-Data-file)
# get the containers from data browser
cons = gwy_app_data_browser_get_containers()
# for simplicity just assume i have only one datafield, or i'd like to work only
# on the first one
gwy_app_data_browser_select_data_field(cons[0],0)
# make this datafield the current one, so i can work with it
current = gwy_app_data_browser_get_current(APP_DATA_FIELD)

# This works fine
gwy.gwy_process_func_run("fft", cons[0], gwy.RUN_INTERACTIVE)

# This is the critical part and forces gwyddion to crash without any notice on
# what the error could be :-(
gwy.gwy_process_func_run("sfunctions", cons[0], gwy.RUN_INTERACTIVE)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to