Skip to content

Convert a solutions file on its own when no questions file is beside it - #26

Merged
peterbjohnson merged 6 commits into
mainfrom
wb/t30
Sep 21, 2026
Merged

peterbjohnson merged 6 commits into
mainfrom
wb/t30

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

A solutions file with no questions file beside it is skipped by run and corpus (solutions without questions, t20), so UCL_MechEng/Tutorial_2_Solutions.pdf is not converted at all. A document of solutions alone is a set in its own right - in2lambda's spec engine runs over one (t48: a doubled solution is reported, not refused), and a lecturer may hold only the solutions. Where pair.of finds no questions file, run the solutions file as a single-source document, with the stage line saying no questions file named X beside it; converting the solutions alone, and let the spec writer know in its prompt that the document holds solutions and no questions, so it writes question selectors for the markers. corpus records the row as any other document. Tests in tests/test_pair.py and tests/test_pipeline.py. Done when Tutorial_2_Solutions.pdf produces a built or faulted row, not a skipped one.


Workbench ticket t30.

@peterbjohnson
peterbjohnson merged commit 6481866 into main Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant