Skip to content
Calvin-ctrlPublic

About

A program that optimizes and fixes the existing algorithm in Sabanci University "course catalog" page.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

43 Commits

Folders and files

Repository files navigation

User Manual

Using juypter notebook:

  • Run this repo from mybinder.com and execute run.py (by python ./run.py)

Running the script locally

  • For macOS users:

    • Open the terminal (Press space + command and search "terminal")
    • Get to the directory where the repo is located by typing "cd" in the terminal. Ex: "cd /Users/(username)/Documents/proj"
    • Activate the virtual environment by typing "source penv/bin/activate" in the terminal.
    • Execute the python script run.py by "python run.py
  • For Windows Users:

    • Open the PowerShell (Press Windows + R and search "powershell")
    • Get to the directory where the repo is located by typing "cd" in the powershell. Ex: "c:\Users(username)\Documents\proj201"
    • Activate the virtual environment by typing "./penv/bin/Activate.ps1" in the powershell. If doesn't allow look up online how to allow powershell to run remote scripts online.
    • Execute the python script run.py by "python run.py

Modifications:

  • Change the html file in "files/" with the catalog you want to work with. (Do not forget to name it "catalog.html". You can change the default names and directory from the environment variables inside "parser.py")
  • Change the variable inside the displayDicts inside the "scripts/root.py" with the below variables to change the output of the file
    • catalog_dict # Catalog without any alterations
    • catalog_dict2 # Catalog with looping prerequisites removed
    • catalog_dict_with_ghosts # Catalog with redundancies removed
    • catalog_dict_without_ghosts # Catalog with prerequisites that does not exist removed
    • syntax_errors # Courses with prerequisites with broken syntax
    • ghost_errors # Courses that are unable to be taken without ghost courses

Details about the scripts

"parser.py"

"logic.py"

  • Function: Algorithms for logical operations

  • External Libraries Used:

    • SymPy

"root.py"

  • Function: Main module

  • Local Modules Used:

    • "parser.py"
    • "logic.py"

Credits:

  • "parser.py" - İlhan Yavuz İskurt
  • "logic.py" - İlhan Yavuz İskurt & Muslim Malsagov
  • "root.py" - İlhan Yavuz İskurt

Acknowledgements:

"parser.py" is based and improved upon "kkkk.py" which was written by Mete Harun Akçay (meteharun@sabanciuniv.edu)

About

A program that optimizes and fixes the existing algorithm in Sabanci University "course catalog" page.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages