Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 13th, 2013  |  syntax: None  |  size: 0.58 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/python/extras_pmt.py b/python/extras_pmt.py
  2. index 84bec80..e71b4d5 100644
  3. --- a/python/extras_pmt.py
  4. +++ b/python/extras_pmt.py
  5. @@ -45,7 +45,7 @@ def __pointer_to_ndarray(addr, nitems):
  6.  
  7.  #re-create the blob data functions, but yield a numpy array instead
  8.  def pmt_blob_data(blob):
  9. -    return __pointer_to_ndarray(extras_swig.pmt_blob_rw_data(blob), extras_swig.pmt_blob_length(blob))
  10. +    return __pointer_to_ndarray(extras_swig.pmt_blob_rw_data(blob), pmt.pmt_blob_length(blob))
  11.  
  12.  #re-create mgr acquire by calling into python GIL-safe version
  13.  class pmt_mgr: