Skip to content

Conversation

@mzuenni
Copy link
Collaborator

@mzuenni mzuenni commented Dec 15, 2025

Closes #487.

Try to implement new sample data behaviour

@mzuenni
Copy link
Collaborator Author

mzuenni commented Dec 15, 2025

@thorehusfeldt can you check the schema again? ^^'

@mpsijm mpsijm changed the title Sample data #487 Implement new sample override Dec 15, 2025
Copy link
Collaborator

@mpsijm mpsijm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick code review, didn't test it yet. The CUE schema looks good on first glance (maybe I'd put "ans" before "ans.statement" for consistency, but that's a nit). Note that the JSON schema should also be updated.

in_file, ans_file = sample.download
base_name = outputdir / str(i + 1)
contents[base_name.with_suffix(".in")] = in_file
if in_file.stat().st_size > 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it ever happen that we can only download a .ans file? I'd say the .in file is required, but maybe I missed something in the discussion.

Same on line 357.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a .ans file without a .in file does not really make sense... but having neither might be useful?

@mzuenni
Copy link
Collaborator Author

mzuenni commented Dec 18, 2025

@mpsijm @thorehusfeldt can you check the schemas?

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.

Support for symlinks in generators.yaml

3 participants