From 410cbfb48b7c87547bb95684612b124fc0f43aa4 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Tue, 10 May 2022 12:31:10 +0200
Subject: [PATCH] PolFilter + swig switch

---
 Device/Pol/PolFilter.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Device/Pol/PolFilter.h b/Device/Pol/PolFilter.h
index bd9bb6af6d3..4bcdcf6d517 100644
--- a/Device/Pol/PolFilter.h
+++ b/Device/Pol/PolFilter.h
@@ -12,18 +12,17 @@
 //
 //  ************************************************************************************************
 
-#ifdef SWIG
-#error no need to expose this header to Swig
-#endif
-
 #ifndef USER_API
 #ifndef BORNAGAIN_DEVICE_POL_POLFILTER_H
 #define BORNAGAIN_DEVICE_POL_POLFILTER_H
 
-#include "Base/Vector/EigenCore.h"
 #include "Param/Node/INode.h"
 #include <heinz/Vectors3D.h>
 
+#ifndef SWIG
+#include "Base/Vector/EigenCore.h"
+#endif
+
 //! Detector properties (efficiency, transmission).
 //! @ingroup detector
 
@@ -44,8 +43,10 @@ public:
     //! Sets the polarization analyzer characteristics of the detector
     void setDirEffTra(R3 direction, double efficiency, double total_transmission);
 
+#ifndef SWIG
     //! Return the polarization density matrix (in spin basis along z-axis)
     Eigen::Matrix2cd matrix() const;
+#endif
 
     //! Retrieve the analyzer characteristics
     R3 polDirection() const;
-- 
GitLab