-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hist application to accpet nbins when min/max are not set (#3935)
* Update hist application to accpet nbins when min/max are not set * Updated history comment on hist test
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# 2020-06-25 - Kristin Berry - Added a test to check that if nbins is set, it is used. | ||
# To make the truthdata for this test, I set the number of bins to 25, a number much smaller than | ||
# the internal default, and just checked that the output was different from the default test. | ||
|
||
APPNAME = hist | ||
histTruth.txt.IGNORELINES = Cube | ||
histTruthNbins.txt.IGNORELINES = Cube | ||
TEMP = $(OUTPUT)/histTruth.txt | ||
TEMPNBINS = $(OUTPUT)/histTruthNbins.txt | ||
|
||
include $(ISISROOT)/make/isismake.tsts | ||
|
||
commands: | ||
# Test without additional arguments | ||
$(APPNAME) from=$(INPUT)/isisTruth.cub \ | ||
to= $(TEMP) > /dev/null; | ||
to=$(TEMP) > /dev/null; | ||
|
||
# Test with setting nbins | ||
$(APPNAME) from=$(INPUT)/isisTruth.cub nbins=25\ | ||
to=$(TEMPNBINS) > /dev/null; |