|
[yoda-svn] r576 - trunk/pyext/yoda/includeblackhole at projects.hepforge.org blackhole at projects.hepforge.orgFri Mar 15 09:58:06 GMT 2013
Author: buckley Date: Fri Mar 15 09:58:06 2013 New Revision: 576 Log: Changing readFrom/writeTo -> just read/write in the Python interface. Much nicer! A bit more awkward in C++ due to static/method name clashes, but these names are so much better that I will make them into standalone functions rather than statics on Reader/Writer (the only current reason for not using these names). Modified: trunk/pyext/yoda/include/IO.pyx Modified: trunk/pyext/yoda/include/IO.pyx ============================================================================== --- trunk/pyext/yoda/include/IO.pyx Fri Mar 15 09:52:27 2013 (r575) +++ trunk/pyext/yoda/include/IO.pyx Fri Mar 15 09:58:06 2013 (r576) @@ -27,7 +27,7 @@ ## Readers ## -def readFrom(filename): +def read(filename): """ Read data objects from the provided filename, auto-determining the format from the file extension. @@ -89,7 +89,7 @@ ## Writers ## -def writeTo(ana_objs, filename): +def write(ana_objs, filename): """ Write data objects to the provided filename, auto-determining the format from the file extension.
More information about the yoda-svn mailing list |