Skip to content

Commit

Permalink
updated the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jewettaij committed Jul 27, 2021
1 parent 6b7599f commit 67508bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/filter_mrc/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,8 +3220,10 @@ Settings::ParseArgs(vector<string>& vArgs)
}
if ((out_file_name.size() == 0) &&
((!
((filter_type == NONE) ||
((out_normals_fname != "") ||
(filter_type == NONE) ||
(filter_type == BLOB) ||
(filter_type == FIND_EXTREMA) ||
(filter_type == SPHERE_NONMAX_SUPPRESSION) ||
(filter_type == SPHERE_NONMAX_SUPERVISED_MULTI) ||
(filter_type == BLOB_RADIAL_INTENSITY)))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_watershed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_watershed() {
assertTrue "Failure: -find-minima failed to make an image. File \"${IN_FNAME_BASE}_gauss_${SIGMA}_minima.rec\" not created" "[ -s ${IN_FNAME_BASE}_gauss_${SIGMA}_minima.txt ]"
# Count the number of dark minima in the image
N_MINIMA=`wc ${IN_FNAME_BASE}_gauss_${SIGMA}_minima.txt | awk '{print $1}'`
N_MINIMA_IMAGE=`../bin/print_mrc_stats/print_mrc_stats ${IN_FNAME_BASE}_gauss_${SIGMA}_minima.rec | grep "minimum brightness" | awk '{print -$3}'`
N_MINIMA_IMAGE=`../bin/print_mrc_stats/print_mrc_stats ${IN_FNAME_BASE}_gauss_${SIGMA}_minima.rec | grep "maximum brightness" | awk '{print $3}'`
assertTrue "Failure: The number of minima reported by -find-minima is not consistent with the image that was created." "[ $N_MINIMA -eq $N_MINIMA_IMAGE ]"

# Test watershed segmentation
Expand Down

0 comments on commit 67508bd

Please sign in to comment.