Skip to content

Commit

Permalink
#309 #348 Do not (re)generate samples when building the PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsijm committed Mar 6, 2024
1 parent 52f349b commit 5c08363
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
14 changes: 0 additions & 14 deletions bin/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,20 +1668,6 @@ def generate(problem):
return True


def generate_samples(problem):
gen_config = GeneratorConfig(problem, [problem.path / 'data' / 'sample'])
if not gen_config.ok:
return True
if not gen_config.has_yaml:
return True

log('Generating samples')
gen_config.build()
gen_config.run()
gen_config.clean_up()
return True


def testcases(problem, includes=False):
gen_config = GeneratorConfig(problem)
if gen_config.has_yaml:
Expand Down
3 changes: 0 additions & 3 deletions bin/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,6 @@ def build_problem_pdfs(problem, solutions=False, web=False):
warn(f'{problem.name}: solution.{lang}.tex not found')
languages = filtered_languages

# try to generate all samples
generate.generate_samples(problem)

return all(build_problem_pdf(problem, lang, solutions, web) for lang in languages)


Expand Down

0 comments on commit 5c08363

Please sign in to comment.