From c2d5166ea233d0620bb5c2e7a4fc567c2d5e5c51 Mon Sep 17 00:00:00 2001
From: Tamino Huxohl <thuxohl@techfak.uni-bielefeld.de>
Date: Wed, 23 Nov 2022 11:25:14 +0100
Subject: [PATCH] fix filename storing in prepare_polar_maps

---
 mu_map/data/prepare_polar_maps.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mu_map/data/prepare_polar_maps.py b/mu_map/data/prepare_polar_maps.py
index 82ca957..51f5074 100644
--- a/mu_map/data/prepare_polar_maps.py
+++ b/mu_map/data/prepare_polar_maps.py
@@ -180,8 +180,8 @@ if __name__ == "__main__":
         _ac = "ac" if row[headers.ac] else "nac"
         _sc = "sc" if row[headers.sc] else "nsc"
         _file = f"{row[headers.id]:04d}-{_ac}_{_sc}_{row[headers.type]}.png"
-        _file = os.path.join(args.images_dir, _file)
         row[headers.file] = _file
+        _file = os.path.join(args.images_dir, _file)
 
         if (
             len(
-- 
GitLab