From 051961505a20491b2026ff9593bac82d1d445bc8 Mon Sep 17 00:00:00 2001 From: thalassemia Date: Sat, 20 Jul 2024 14:02:00 +0800 Subject: [PATCH] Fix no_suffix_time CLI option --- ecoli/experiments/ecoli_master_sim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecoli/experiments/ecoli_master_sim.py b/ecoli/experiments/ecoli_master_sim.py index 9068decc1..f5118dcef 100644 --- a/ecoli/experiments/ecoli_master_sim.py +++ b/ecoli/experiments/ecoli_master_sim.py @@ -219,7 +219,7 @@ def __init__( ) self.parser.add_argument( "--no_suffix_time", - action="store", + action="store_true", help="Do not append current time as '_day-month-year_hour-minute-second'" " to experiment ID.", ) @@ -828,7 +828,7 @@ def run(self): # with suffix_time = True. if not self.experiment_id_base: self.experiment_id_base = self.experiment_id - if self.suffix_time: + if self.suffix_time and not self.no_suffix_time: self.experiment_id = datetime.now().strftime( f"{self.experiment_id_base}_%d-%m-%Y_%H-%M-%S" )