Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuboudreau committed May 25, 2024
1 parent 2e21dc0 commit 1357eed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion algos/ads_2/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ pip install -e . --ignore-installed certifi
pip uninstall h5py
pip install h5py==2.10.0

py.test --cov AxonDeepSeg/ --cov-report term-missing
py.test --cov AxonDeepSeg/ --cov-report term-missing > ../output/log.txt
16 changes: 0 additions & 16 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,4 @@ echo "[INFO] Running $USER_SCRIPT_DIR/main.sh in container..."
docker exec "$PIPELINE_NAME" bash -c "chmod +x /seg_ci/main.sh"
docker exec "$PIPELINE_NAME" bash -c "cd /seg_ci && ./main.sh"

echo "[INFO] Consolidating output in output/${PIPELINE_NAME}"
OUTPUT_FILES=$(ls output/${PIPELINE_NAME}/*.nii* 2> /dev/null | wc -l)
if [ "$OUTPUT_FILES" -eq 0 ]; then
echo "[ERROR] Expected output not found! Check that the script correctly places one NIfTI file in 'output/'"
exit 1
elif [ "$OUTPUT_FILES" -ne 1 ]; then
echo "[ERROR] More than one output file found! '`ls output/${PIPELINE_NAME} -m`'"
exit 1
else
if [ ! -f output/${PIPELINE_NAME}/*.nii.gz ]; then
gzip -f output/${PIPELINE_NAME}/*.nii
fi
if [ ! -f output/${PIPELINE_NAME}/${PIPELINE_NAME}.nii.gz ]; then
mv output/${PIPELINE_NAME}/*.nii.gz output/${PIPELINE_NAME}/${PIPELINE_NAME}.nii.gz
fi
fi

0 comments on commit 1357eed

Please sign in to comment.