Skip to content

Conversation

LuluW8071
Copy link
Contributor

@LuluW8071 LuluW8071 commented Apr 22, 2024

Changes

Refactored Functions

  • calc_per_center
  • allocate
  • is_allocated

Updated README.md with command and parameter table

Variable Value Description
PREF_DISTANCE_THRESHOLD 2 Preferred threshold distance in km
ABS_DISTANCE_THRESHOLD 7 Absolute threshold distance in km
MIN_STUDENT_IN_CENTER 10 Min. no of students from a school to be assigned to a center in normal circumstances
STRETCH_CAPACITY_FACTOR 0.02 Factor determining how much center capacity can be stretched if needed
PREF_CUTOFF -4 Cutoff value for preference score allocation
python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv

Added haversine_distance reference

Fixed Typos & Readable Indentation

Comment on lines -69 to -73
remaining capacity at center (-ve if stretched capacity is used)
|
(-11, '27022'), (-11, '27045'), (-11, '27057')
|
center code
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a useful explanation, can we retain this along with the full console output

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i shall revert back to previous output

@sumanashrestha
Copy link
Collaborator

thank you. mergin

@sumanashrestha sumanashrestha merged commit 143490f into moest-np:main Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants