Diff for /loncom/interface/statistics/lonproblemanalysis.pm between versions 1.80 and 1.81

version 1.80, 2004/03/16 16:30:31 version 1.81, 2004/03/16 16:41:26
Line 205  sub NumericalResponseAnalysis { Line 205  sub NumericalResponseAnalysis {
     }      }
     #      #
     # This next call causes all the waiting around that people complain about      # This next call causes all the waiting around that people complain about
     my ($max,$min) = &GetStudentAnswers($r,$problem,$Students);      my ($max,$min) = &Apache::lonstathelpers::GetStudentAnswers($r,$problem,
                                                                   $Students);
     return if ($c->aborted());      return if ($c->aborted());
     #      #
     # Collate the data      # Collate the data
Line 308  sub circle { Line 309  sub circle {
     return &arc($x,$y,$radius,$radius,0,360,$color,$thickness,$filled);      return &arc($x,$y,$radius,$radius,0,360,$color,$thickness,$filled);
 }  }
   
 sub GetStudentAnswers {  
     my ($r,$problem,$Students) = @_;  
     my $c = $r->connection();  
     my %Answers;  
     my ($resource,$partid,$respid) = ($problem->{'resource'},  
                                       $problem->{'part'},  
                                       $problem->{'respid'});  
     # Read in the cache (if it exists) before we start timing things.  
     &Apache::lonstathelpers::ensure_proper_cache($resource->{'symb'});  
     # Open progress window  
     my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin  
         ($r,'Student Answer Compilation Status',  
          'Student Answer Compilation Progress', scalar(@$Students));  
     $r->rflush();  
     foreach my $student (@$Students) {  
         last if ($c->aborted());  
         my $sname = $student->{'username'};  
         my $sdom = $student->{'domain'};  
         my $answer = &Apache::lonstathelpers::analyze_problem_as_student  
             ($resource,$sname,$sdom,$partid,$respid);  
         &Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state,  
                                                  &mt('last student'));  
         $student->{'answer'} = $answer;  
     }  
     &Apache::lonstathelpers::write_answer_cache();  
     return if ($c->aborted());  
     $r->rflush();  
     # close progress window  
     &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);  
     return;  
 }  
   
 sub build_student_data_worksheet {  sub build_student_data_worksheet {
     my ($workbook,$format) = @_;      my ($workbook,$format) = @_;
     my $rows_output = 3;      my $rows_output = 3;

Removed from v.1.80  
changed lines
  Added in v.1.81


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>