From 41c146f26462206297d04e9ab3afefc651f183e9 Mon Sep 17 00:00:00 2001
From: Marcus Mohr <marcus.mohr@lmu.de>
Date: Mon, 3 Mar 2025 17:16:47 +0100
Subject: [PATCH] Quick fix for file_path() and P2PlusBubble forms

This should temporarily fix the problem in the "form-generation" job of the
pipeline with the p2_plus_bubble_diffusion_affine_qe form. For the moment we
place it in the p2 folder. However, file_path() needs refactoring, especially
if we add more spaces.
---
 generate_all_hyteg_forms.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generate_all_hyteg_forms.py b/generate_all_hyteg_forms.py
index 96a7b26..ae86507 100644
--- a/generate_all_hyteg_forms.py
+++ b/generate_all_hyteg_forms.py
@@ -166,8 +166,8 @@ class FormInfo:
         sub_dir = "p1"
         if self.trial_family == "N1E1":
             sub_dir = "n1e1"
-        elif self.trial_family == "P2 enhanced with Bubble":
-            return "p2_plus_bubble"
+        elif self.trial_family == "P2 enhanced with Bubble" and self.test_family == "P2 enhanced with Bubble":
+            sub_dir = "p2"
         elif self.trial_degree == self.test_degree:
             sub_dir = f"p{self.trial_degree}"
         else:
-- 
GitLab