Skip to content

Rename input_visualizer to test_case_visualizer; add *_visualizer_args #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mpsijm
Copy link
Contributor

@mpsijm mpsijm commented Apr 20, 2025

Closes #351.

I've tested the example visualizers in the "maximal" problem with https://github.com/RagnarGrootKoerkamp/BAPCtools/tree/draft-visualizer, with the following side-notes:

  • The visualizer in BAPCtools currently only generates images under data/ with a proper generators/generators.yaml, so I temporarily wrote one:

    Temporary generators/generators.yaml:
    solution: /submissions/accepted/accepted.py
    version: 2025-04
    
    data:
      sample:
        testdata.yaml:
          test_case_visualizer_args: [sample]
          output_visualizer_args: [sample]
        data:
          "1":
            in: "41"
    
      secret:
        testdata.yaml:
          test_case_visualizer_args: [secret]
          output_visualizer_args: [secret]
        data:
          "1":
            in: "13"
          "2":
            in: "-100"
          "3":
            in: "99"
          "4":
            in: "0"
  • BAPCtools does not support the include/ (yet?), so it should be invoked as bt generate --no-solution --no-validators

  • BAPCtools still uses testdata.yaml, I renamed this manually to test_group.yaml after running bt generate

Nonetheless, the "maximal" problem should be spec-compliant (and at some point in the future, BAPCtools should run it without issues as well) 😄

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.

Example for output_visualizer is missing
1 participant