open-resources / scripts

Repo of converter scripts to and from MD files to various platform file formats.
3 stars 0 forks source link

Webwork Script - Modularization #29

Closed Parsa-Rajabi closed 2 years ago

Parsa-Rajabi commented 3 years ago

Break script into sections and add functions to handle different aspects. Firas suggested to use python dics to pass around values between functions

firasm commented 3 years ago

Consider using *args and **kwargs for wrapper functions.

Parsa-Rajabi commented 3 years ago

Completed initial function to split file into bite-size pieces, more to follow

Parsa-Rajabi commented 3 years ago

functions created thus far:

  1. split file into bite-size pieces
  2. metadata extraction
  3. image extraction
  4. determine problem type (checkbox/numerical/string etc.)
  5. yaml dump

functions TODO:

  1. problem extraction (including multi-parts) [IN PROGRESS]
  2. answer extraction
  3. sanity tests
Parsa-Rajabi commented 3 years ago

problem extraction is still in progress:

TODO for problem extract function:

Parsa-Rajabi commented 3 years ago

problem extraction has been completed.

last item left:

Parsa-Rajabi commented 2 years ago

All complete!