Merge pull request #878 in CASA/casa from CAS-11917 to master
* commit 'b94fd5afadbbca7fc40cf1d126d1653355a410df':
Diabled always save mode for intermedidate mask and residual images
Added a tolerance for nigma threshold stopping criterion to use (one part in 100)
Removed debug messages
Cleaned up some debug messages
fixes for getPeakResidual() and getPeakResidualWithinMask()
Fixed a bug introdued at the last merge
temporary modificaitons for debugging
Revert "Fixed some out of sync nsigma issues reported on CAS-11984"
Fixed some out of sync nsigma issues reported on CAS-11984
Apply pbmask before pruning
Fixed a bug in channel indexing for the statistics results and enabled saving of the intermediate images for testing
Cleaned up some debug messages
Workable solutions for the image statistics sharing between automask and nsigma threshold.
Merge pull request #877 in CASA/casa from CAS-12282 to master
* commit '054a1899f187a5d45f2046a466d42847dbcbc63c':
test_helper imports for CASA 5/6, tool names, paths, Python 3 issues, CAS-12282
CASA 5/6 tool names in helper, CAS-12282
Python 3 compat and imports for Python 2/3 - CASA 5/6, CAS-12282
replace argsort with lexsort by (#rows, then scan, thenddi) as per CAS-12025, CAS-12282
split chunk buildScanDDIMap() from getPartitionMap, CAS-12282