From 56f7c8d278faae90dd4901efc2c0fb0ade08a076 Mon Sep 17 00:00:00 2001 From: Noelle Leigh Date: Sun, 1 Jun 2025 22:20:02 -0400 Subject: [PATCH] Make each default car a separate list in memory So the link strings don't just grow over time --- tilde-train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tilde-train.py b/tilde-train.py index 1115c00..ea12c90 100755 --- a/tilde-train.py +++ b/tilde-train.py @@ -339,7 +339,7 @@ for fname in glob.glob('/home/*/' + traincarFN): ##print "Cannot open " + fname # for debuggering purposes while len(cars) < max_cars: - cars.append(default_car) ## add default cars if train too short + cars.append([*default_car]) ## add copies of default cars if train too short shuffle(cars) cars = cars[0:max_cars]