Skip to content

Commit

Permalink
fix missing return value for numpyarray store function. removed unimp…
Browse files Browse the repository at this point in the history
…lemented point class in dataformat linkdef
  • Loading branch information
twongjirad committed Sep 4, 2021
1 parent b818e16 commit 1565360
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions larcv/core/DataFormat/LinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
#pragma link C++ function larcv::GetProductTypeName( larcv::ProductType_t )+;
#pragma link C++ function larcv::GetProductTypeID( std::string )+;

#pragma link C++ class larcv::Point2D+;
#pragma link C++ class std::vector<larcv::Point2D>+;
//#pragma link C++ class larcv::Point2D+;
//#pragma link C++ class std::vector<larcv::Point2D>+;
#pragma link C++ class larcv::Point3D+;

#pragma link C++ class larcv::BBox2D+;
Expand Down
2 changes: 2 additions & 0 deletions larcv/core/PyUtil/NumpyArray.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ namespace larcv {
}

delete [] dims;
return 0;
}

PyObject* NumpyArrayFloat::tonumpy()
Expand Down Expand Up @@ -219,6 +220,7 @@ namespace larcv {
}

delete [] dims;
return 0;
}

PyObject* NumpyArrayInt::tonumpy()
Expand Down

0 comments on commit 1565360

Please sign in to comment.