Commit 0c3baf58 authored by Daniel W Bond's avatar Daniel W Bond

progress on utilities

parent 82156aa2
......@@ -23,7 +23,6 @@ def programCourses(program):
def assignedWeights(weightedCourse, programCourses):
""" assign weights to all courses in a program for automation """
weights = {}
for weightedCourse in programCourses:
weightedCourseCounter = 0
......@@ -44,6 +43,16 @@ def assignedWeights(weightedCourse, programCourses):
return weights
def courseWeighting(programCourses):
weights = {}
weightedCourse = programCourses[0]
assignedWeights(weightedCourse, programCourses)
return weights
def customAssignedWeights(weights, selectedCourses):
""" remove courses that a student has not selected from the weighted
courses """
......@@ -54,9 +63,6 @@ def customAssignedWeights(weights, selectedCourses):
return customweights
def shortestPath(weights):
return True
### editing a trajectory
def requirementsFulfilled(taken, program):
......@@ -73,7 +79,8 @@ def requirementsFulfilled(taken, program):
if len(requirementCoursesTaken) is requirement.coursegroup.numneeded:
fulfilled.append(requirement)
# this should return true or false
return fulfilled
#def alreadyTaken():
......@@ -142,6 +149,37 @@ def enoughCredits(previousCourses, numRequired):
return enoughcredits
def generatedTrajectory():
generatedTrajectory = []
# get the course's programs
programCourses()
# find the weights of all of the programs
courseWeighting()
# get the courses you have to take next
remainingReqCourses()
requirementsFulfilled()
nextCourses()
# of those, pick five of the heaviest
### IMPLEMENT THIS
# retrieve the next courses you need to take, and so forth
remainingReqCourses()
requirementsFulfilled()
# if there are no remainingReqCourses or requirementsFulfilled is True
# do you have enough credits?
enoughCredits()
# hooray!
return generatedTrajectory
### student page
def allTrajectories(topSemester):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment