azazarfin60/NumericalMethods_and_DiscreteMathematics_Semester_Final

Themes

azazarfin60/NumericalMethods_and_DiscreteMathematics_Semester_Final

Viewing commit a9602da

  1. answer_manifest.csv44.6 KB
  2. audit_numbers.py25.5 KB
  3. build_filelist.py5.6 KB
  4. build_manifest.py16.4 KB
  5. build_merge_map.py10.6 KB
  6. check_paper.py3.6 KB

scripts/README.md

Scripts

Build scripts, quality gates, and data files that drive the answer pipeline.

Quality gate scripts

ScriptGateWhat it checks
gate_v1.shV1Source freeze: SHA-256 hashes of the 9 question files match source_manifest.sha256.
gate_v2.shV2Manifest completeness: every sub-question in the papers has a row in answer_manifest.csv (202 rows, 84 examined subtopics).
gate_v3.pyV3Cluster & subtopic coverage: every unit appears in exactly one topic file, in exactly one block.
gate_v4.pyV4Heading parity: both topic-wise folders have identical block headings and provenance lines.
gate_v5.pyV5Boxed-result match: every \boxed{} in downstream files is character-identical to the exam-style origin.
gate_v7.pyV7Cross-reference health: no dead pointers, no pointer-only files pointing at nothing.
gate_v8.pyV8Number provenance: every box and long numeral traces to a year-wise section.
gate_v9.shV9Build hygiene: no Practice/Extra/Similar/Bonus strings in the answer directories.
gate_v12.pyV12Section metadata parity: explanation layer agrees with exam-style on marks and CO/CLO mapping.
gate_v13.pyV13Coverage audit: every manifest row has an answer in the expected file; merge-map invariants hold.
gate_v14.pyV14Topic layer lint: no retyped boxes, every cited unit is real, no dead pointers across all 30 topic files.
gate_v15.pyV15Math delimiter balance: paired $$ fences and balanced inline $ per block.

Generator scripts

ScriptWhat it does
build_topicwise_clusters.pyClusters the 84 subtopic files into 14 consolidated topic-level modules and adds BossNote-style navigation indices.
gen_topicwise.pyGenerates granular subtopic answer files in SubTopicwise_Answers/ from the year-wise files + merge_map.csv.
build_manifest.pyBuilds answer_manifest.csv from the question papers.
build_merge_map.pyBuilds merge_map.csv with merge/split decisions for repeated questions.
build_filelist.pyGenerates filelist.txt and subtopics_with_file.txt from the taxonomy.

Linters

ScriptWhat it checks
lint_register.pyEnforces exam_register.md rules (no second person, no commentary) on exam-style files.
lint_explanation.pyEnforces writing_style.md rules on explanation files.
check_paper.pyValidates a single paper's structure against the manifest.
audit_numbers.pyAudits numerical results across all answer layers for consistency.
audit_ascii_diagrams.pyScans repository markdown files for leftover ASCII art diagrams.
strip_code.pyStrips code fences from markdown files (utility).
normalize-vault-math.mjsNormalizes LaTeX math fences for Obsidian vault compatibility.

Diagram generators and utilities

ScriptWhat it does
generate_2017_q6a_plot.pyGenerates the regression criteria comparison plot for 2017 Q.6(a).
generate_2018_q4c_plot.pyGenerates the regression plot for 2018 Q.4(c).
generate_2023_q5a_plot.pyGenerates logic circuit diagrams for 2023 Q.5(a).
generate_boss_notes_plots.pyGenerates technical diagrams for Boss Notes (Laplace grid, precision/accuracy, relaxation spectrum, integrator circuit).
generate_error_tradeoff_plot.pyGenerates truncation vs round-off error trade-off plot for NM-1.
topic_lib.pyShared library: taxonomy parsing, file naming, ID resolution.

Data files

FileWhat it holds
answer_manifest.csv202 rows. One row per sub-question. Year, question number, marks, subtopic, merge tier, filing target.
merge_map.csvMerge/split decisions for repeated questions. Read by gen_topicwise.py.
filelist.txtExpected file list for the subtopic-wise directories (84 files).
filelist_no_file.txtSubtopics with no exam presence (21 of 105, no file created).
subtopics_with_file.txtSubtopics that have at least one question (84 of 105).
source_manifest.sha256SHA-256 hashes of the 9 frozen source files.