mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Merge branch 'scrapers'
This commit is contained in:
commit
dd9ed86dcd
8 changed files with 2099 additions and 40444 deletions
|
|
@ -61,6 +61,10 @@ module Dese
|
|||
fte_index = headers['FTE Count']
|
||||
num_of_guidance_counselors = items[fte_index].to_f
|
||||
dese_id = items[headers['School Code']].to_i
|
||||
school = School.find_by_dese_id(dese_id)
|
||||
|
||||
return 'NA' unless school.present? && school.is_hs?
|
||||
|
||||
num_of_students = student_count(filepath: filepaths[0], dese_id:, year: academic_year.range) || 0
|
||||
items << num_of_students
|
||||
benchmark = 250
|
||||
|
|
|
|||
|
|
@ -101,14 +101,17 @@ module Dese
|
|||
non_white_student_percentage = (100 - white_number).to_f
|
||||
items.unshift(non_white_student_percentage)
|
||||
|
||||
non_white_teachers = teacher_count(filepath: filepaths[1], dese_id:, year: academic_year.range).to_f
|
||||
items.unshift(non_white_teachers)
|
||||
non_white_teacher_percentage = teacher_count(filepath: filepaths[1], dese_id:, year: academic_year.range).to_f
|
||||
items.unshift(non_white_teacher_percentage)
|
||||
|
||||
return 1 if non_white_student_percentage.zero? && non_white_teachers < 6.7
|
||||
floor = 5
|
||||
benchmark = 0.25
|
||||
|
||||
if non_white_teachers >= 6.7
|
||||
parity_index = non_white_teachers / non_white_student_percentage
|
||||
likert_score = parity_index * 4 / 0.25
|
||||
return 1 if non_white_student_percentage.zero? && non_white_teacher_percentage < floor
|
||||
|
||||
if non_white_teacher_percentage >= floor
|
||||
parity_index = non_white_teacher_percentage / non_white_student_percentage
|
||||
likert_score = parity_index * 4 / benchmark
|
||||
else
|
||||
likert_score = 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue