From 169a5e5bd7bc87a5331e9e38a26dfeb116956a15 Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Sat, 29 Jul 2023 09:27:45 +0100 Subject: [PATCH] Fix a small bug in paths --- csiborgtools/read/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csiborgtools/read/paths.py b/csiborgtools/read/paths.py index 12da634..f304728 100644 --- a/csiborgtools/read/paths.py +++ b/csiborgtools/read/paths.py @@ -305,9 +305,9 @@ class Paths: files = [f for f in files if "_inv" not in f] # Remove inv. ICs files = [f for f in files if "_new" not in f] # Remove _new files = [f for f in files if "OLD" not in f] # Remove _old - ids = [int(f.split("_")[-1]) for f in files] + files = [int(f.split("_")[-1]) for f in files] try: - ids.remove(5511) + files.remove(5511) except ValueError: pass elif simname == "quijote" or simname == "quijote_full":