Skip to content

Commit 199b224

Browse files
authored
Merge pull request #2 from sindhu-ku/develop
merge new changes
2 parents 0894745 + 301ebc0 commit 199b224

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

configure.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ else
3535
fi
3636
if [[ $LARCV_PYVERSION -gt 2 ]]
3737
then
38-
minor=$(python3 -c "import sys; print(sys.version_info.minor)")
39-
export LARCV_PYTHON_CONFIG=python${LARCV_PYVERSION}.${minor}-config
38+
export LARCV_PYTHON_CONFIG=python3-config
39+
# minor=$(python3 -c "import sys; print(sys.version_info.minor)")
40+
# export LARCV_PYTHON_CONFIG=python${LARCV_PYVERSION}.${minor}-config
4041
fi
4142

4243
export LARCV_COREDIR=$LARCV_BASEDIR/larcv/core

larcv/core/PyUtil/PyUtils.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ VoxelSet as_tensor2d(PyObject* pyarray, const ImageMeta& meta, float min_thresho
843843
LARCV_CRITICAL() << "Cannot convert to 2D C-array (return code " << ret << ")" << std::endl;
844844
throw larbys();
845845
}
846-
if (dims[1] != 2) {
847-
LARCV_CRITICAL() << "The 2nd dimenstion must be length 2! (length " << dims[1] << ")" << std::endl;
846+
if (dims[1] != 3) {
847+
LARCV_CRITICAL() << "The 2nd dimenstion must be length 3! (length " << dims[1] << ")" << std::endl;
848848
throw larbys();
849849
}
850850
VoxelSet res;

0 commit comments

Comments
 (0)