Fixed python bindings for reward and video timestamps - this closes
@@ -325,7 +325,7 @@ BOOST_PYTHON_MODULE(MalmoPython)
;
register_ptr_to_python< boost::shared_ptr< TimestampedReward > >();
class_< TimestampedReward >( "TimestampedReward", no_init )
- .add_property( "timestamp", make_getter(&TimestampedString::timestamp, return_value_policy<return_by_value>()))
+ .add_property( "timestamp", make_getter(&TimestampedReward::timestamp, return_value_policy<return_by_value>()))
.def("hasValueOnDimension", &TimestampedReward::hasValueOnDimension)
.def("getValueOnDimension", &TimestampedReward::getValueOnDimension)
.def("getValue", &TimestampedReward::getValue)
@@ -340,7 +340,7 @@ BOOST_PYTHON_MODULE(MalmoPython)
register_ptr_to_python< boost::shared_ptr< TimestampedVideoFrame > >();
class_< TimestampedVideoFrame >( "TimestampedVideoFrame", no_init )
- .add_property( "timestamp", make_getter(&TimestampedString::timestamp, return_value_policy<return_by_value>()))
+ .add_property( "timestamp", make_getter(&TimestampedVideoFrame::timestamp, return_value_policy<return_by_value>()))
.def_readonly( "width", &TimestampedVideoFrame::width )
.def_readonly( "height", &TimestampedVideoFrame::height )
.def_readonly( "channels", &TimestampedVideoFrame::channels )
