diff --git a/src/View/Geometry/Window.py b/src/View/Geometry/Window.py index a870cee5..93d46af7 100644 --- a/src/View/Geometry/Window.py +++ b/src/View/Geometry/Window.py @@ -888,8 +888,9 @@ class GeometryWindow(PamhyrWindow): if is_interpolated and not export_interpolated: continue - self._export_to_file_st_profile(wfile, profile, pid) - pid += 1 + if profile.enabled: + self._export_to_file_st_profile(wfile, profile, pid) + pid += 1 def _export_to_file_st_profile(self, wfile, profile, pid): num = f"{pid:>6}"