Hi, I started using pygwy to write a file import module for our own data
file type. The example in the tutorial sets the datafield one by one using
set_val(i, j, value), which is quite slow.
In my case, I load my data file into a numpy 2d array. I wonder if there is
a direct way to set the entire data set at once.
The API document page for set_val says
"Do not set data with this function inside inner loops, it's slow. Get the
raw data buffer with DataField.get_data() and write to it directly instead."
But for get_data, it says
"Create a tuple of data which the datafield contains. Content of the tuple
is NOT reference to original datafield but its copy" This seems quite
conflicting.
When I create a DataField class, there is set_data() method. But it
requires two arguments, and I can't find the document for this method.
(could be a inherited method?)
Any help would be appreciated. Thanks.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users