From 5c083633584b04f59e9825c7e6bbc0ba2fa8299b Mon Sep 17 00:00:00 2001 From: Maarten Sijm <9739541+mpsijm@users.noreply.github.com> Date: Wed, 6 Mar 2024 09:33:18 +0100 Subject: [PATCH] #309 #348 Do not (re)generate samples when building the PDF --- bin/generate.py | 14 -------------- bin/latex.py | 3 --- 2 files changed, 17 deletions(-) diff --git a/bin/generate.py b/bin/generate.py index ab95eebd..f910b49f 100644 --- a/bin/generate.py +++ b/bin/generate.py @@ -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: diff --git a/bin/latex.py b/bin/latex.py index a3e01675..591ebd3b 100644 --- a/bin/latex.py +++ b/bin/latex.py @@ -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)