From 0447279fcc8f428c6f7f3ae1ae5a6995f123b864 Mon Sep 17 00:00:00 2001 From: Mayeul Aubin Date: Mon, 24 Mar 2025 17:33:42 +0100 Subject: [PATCH] prevent scola overwriting --- scola.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scola.py b/scola.py index a6156ad..ff341ab 100644 --- a/scola.py +++ b/scola.py @@ -13,6 +13,11 @@ def main_scola(parsed_args): nboxes_tot = int(parsed_args.N_tiles**3) + if have_all_tiles(parsed_args) and not parsed_args.force: + print_message("All tiles already exist. Use -F to overwrite.", 1, "scola", verbose=parsed_args.verbose) + print_ending_module("scola", verbose=parsed_args.verbose) + return + if parsed_args.execution == "local": from parameters_card import parse_arguments_card from tqdm import tqdm