[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemanalysis.pm
bowersj2
lon-capa-cvs@mail.lon-capa.org
Sat, 04 Feb 2006 19:06:54 -0000
bowersj2 Sat Feb 4 14:06:54 2006 EDT
Modified files:
/loncom/interface/statistics lonproblemanalysis.pm
Log:
Fix #4609, at least in the most superficial sense; it no longer ISE's.
Index: loncom/interface/statistics/lonproblemanalysis.pm
diff -u loncom/interface/statistics/lonproblemanalysis.pm:1.123 loncom/interface/statistics/lonproblemanalysis.pm:1.124
--- loncom/interface/statistics/lonproblemanalysis.pm:1.123 Sat Jan 21 23:10:04 2006
+++ loncom/interface/statistics/lonproblemanalysis.pm Sat Feb 4 14:06:53 2006
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemanalysis.pm,v 1.123 2006/01/22 04:10:04 bowersj2 Exp $
+# $Id: lonproblemanalysis.pm,v 1.124 2006/02/04 19:06:53 bowersj2 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -401,7 +401,8 @@
} elsif ($low_bin < 0 && $high_bin < -$low_bin) {
$high_bin = -$low_bin;
}
- if (($high_bin -$low_bin)/$min_bin_size * 2 > $max_bins) {
+ if (!$min_bin_size ||
+ ($high_bin -$low_bin)/$min_bin_size * 2 > $max_bins) {
$min_bin_size = abs($high_bin - $low_bin) / $max_bins * 2;
}
my @bins;