Mercurial > pytave
comparison octave_to_python.cc @ 350:e89a8a37fd8a
Rename the Octave-Python communication dict
* @pyobject/pyobject.m: Rename dict.
* octave_to_python.cc: Rename dict.
* pytave_utils.cc: Rename dict.
* python_to_octave.cc: Rename dict.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Thu, 11 Aug 2016 10:29:18 -0700 |
parents | 7f039ffe501b |
children | eac35d84ef0d |
comparison
equal
deleted
inserted
replaced
349:140e37e8e95a | 350:e89a8a37fd8a |
---|---|
188 } | 188 } |
189 else if (octvalue.is_object () && octvalue.class_name () == "pyobject") | 189 else if (octvalue.is_object () && octvalue.class_name () == "pyobject") |
190 { | 190 { |
191 octave_value_list tmp = feval ("getid", ovl (octvalue), 1); | 191 octave_value_list tmp = feval ("getid", ovl (octvalue), 1); |
192 std::string hexid = tmp(0).string_value (); | 192 std::string hexid = tmp(0).string_value (); |
193 py_object = boost::python::import ("__main__").attr ("_InOctave")[hexid]; | 193 py_object = boost::python::import ("__main__").attr ("_in_octave")[hexid]; |
194 } | 194 } |
195 else | 195 else |
196 throw value_convert_exception ( | 196 throw value_convert_exception ( |
197 "Conversion from Octave value not implemented"); | 197 "Conversion from Octave value not implemented"); |
198 } | 198 } |