Exemplo n.º 1
0
from ProgramParsing.Environment.MajorParser import EnvironmentMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])

    filesToIgnore = [
        "ENV-Env-Res-Sus-Env-Res-Stud-Hons-Reg-Co-op.html",
        "ENV-Honours-Environment-Business-Co-op-and-Reg.html",
        "ENV-Honours-Geography-and-Aviation-Regular.html"
    ]
    filesToIgnore = set(["/Specs/" + f for f in filesToIgnore])
    files = files - filesToIgnore

    # files = set(["/Specs/ENV-Honours-International-Development.html"])

    main(EnvironmentMajorParser, files, "Environment")
Exemplo n.º 2
0
from ProgramParsing.Engineering.MajorParser import EngineeringMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])

    filesToIgnore = []
    filesToIgnore = set(["/Specs/" + f for f in filesToIgnore])
    files = files - filesToIgnore

    # files = set(["/Specs//ENG-Environmental-Engineering.html"])

    #Multople TE does not display
    # files = set(["/Specs/ENG-Mechatronics-Engineering.html"])

    main(EngineeringMajorParser, files, "Engineering")
Exemplo n.º 3
0
from ProgramParsing.Science.MajorParser import ScienceMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])

    # Debugging purposes
    # files = set(["/Specs/SCI-Honours-Science5.html"])
    main(ScienceMajorParser, files, "Science")
Exemplo n.º 4
0
from ProgramParsing.AHS.MajorParser import AHSMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])

    filesToIgnore = []
    filesToIgnore = set(["/Specs/" + f for f in filesToIgnore])
    files = files - filesToIgnore

    main(AHSMajorParser, files, "Applied Health Science")
Exemplo n.º 5
0
from ProgramParsing.Arts.MajorParser import ArtsMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])

    filesToIgnore = ["ARTS-BA-Degree-Requirements.html"]
    filesToIgnore = set(["/Specs/" + f for f in filesToIgnore])
    files = files - filesToIgnore

    # files =["Specs/ARTS-BAFM-Degree-Requirements.html"]

    main(ArtsMajorParser, files, "Arts")
Exemplo n.º 6
0
from ProgramParsing.Math.MajorParser import MathMajorParser
from ProgramParsing.ProgramParser.ParseProgram import main
import os

if __name__ == "__main__":
    dir = os.path.dirname(__file__)
    path = os.path.join(dir, 'Specs')
    files = set(
        ["/Specs/" + f for f in os.listdir(path) if f.endswith(".html")])
    files.add("TableII.html")

    filesToIgnore = [
        "ENG-Software-Engineering.html",
        "MATH-Mathematical-Optimization1.html",
        "MATH-Math-or-Chartered-Professional-Accountancy-co.html"
    ]
    filesToIgnore = set(["/Specs/" + f for f in filesToIgnore])
    files = files - filesToIgnore

    # files = set(["/Specs/MATH-Math-or-Fin-Analysis-Risk-Mgt-Degree-Reqmnt.html"])

    main(MathMajorParser, files, DropTable=True)