/[escript]/trunk/escript/src/escriptcpp.cpp
ViewVC logotype

Diff of /trunk/escript/src/escriptcpp.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2635 by jfenwick, Thu Aug 27 04:54:41 2009 UTC revision 2644 by jfenwick, Wed Sep 2 04:14:03 2009 UTC
# Line 107  BOOST_PYTHON_MODULE(escriptcpp) Line 107  BOOST_PYTHON_MODULE(escriptcpp)
107  " value for arg1. The values are added up and the total value is returned.\n\n:rtype: int");  " value for arg1. The values are added up and the total value is returned.\n\n:rtype: int");
108    def("getMachinePrecision",escript::getMachinePrecision);    def("getMachinePrecision",escript::getMachinePrecision);
109    def("getMaxFloat",escript::getMaxFloat);    def("getMaxFloat",escript::getMaxFloat);
110      def("_saveDataCSV",escript::saveDataCSV, (args("filename","arg","sep","csep"), arg("append")=false),
111    "Saves data objects passed in a python dictionary to a file.\n"
112    def("_saveDataCSV",escript::saveDataCSV, (args("filename","arg","sep","csep"), arg("append")=false));  "The data objects must be over the same domain and be able to be interpolated to the same FunctionSpace.\n"
113    "If one of the dictionary keys is named ``mask``, then only samples where ``mask`` has a positive\n"
114    "value will be written to the file.\n\n"
115    "A header line giving the names of each column will be output first.\n"
116    "The keys given in the dictionary will be used to name columns.\n"
117    "Then the data will be output, one line per sample (for all data).\n"
118    "\n:param filename:\n:type filename: ``string``\n"
119    ":param arg: dictionary of named `Data` objects. If one is called ``mask`` it must be scalar data."
120    "\n:type arg: ``dict``\n"
121    ":param sep:separator for columns (defaults to \", \"\n:type sep:``string``\n"
122    ":param csep:separator for fields within data object (defaults to \"_\"\n:type csep:``string``\n"
123    ":param append: If True, write to the end of ``filename``\n:type append: ``string``\n");
124    
125    
126    //    //

Legend:
Removed from v.2635  
changed lines
  Added in v.2644

  ViewVC Help
Powered by ViewVC 1.1.26