From 0b739fb285fb4410899e55de599f6fbb4eb0b87b Mon Sep 17 00:00:00 2001 From: Walter Van Herck <w.van.herck@fz-juelich.de> Date: Tue, 24 Oct 2017 16:46:40 +0200 Subject: [PATCH] Fix bug in Python export of material's magnetization --- Core/Export/ExportToPython.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/Export/ExportToPython.cpp b/Core/Export/ExportToPython.cpp index 9800214f74d..793d3c181bb 100644 --- a/Core/Export/ExportToPython.cpp +++ b/Core/Export/ExportToPython.cpp @@ -208,8 +208,7 @@ std::string ExportToPython::defineMaterials() const } else { kvector_t magnetic_field = p_material->magnetization(); result << indent() << "magnetic_field = kvector_t(" << magnetic_field.x() << ", " - << magnetic_field.y() << ", " << magnetic_field.z() << ", " - << ")\n"; + << magnetic_field.y() << ", " << magnetic_field.z() << ")\n"; result << indent() << m_label->labelMaterial(p_material) << " = ba.HomogeneousMaterial(\"" << p_material->getName(); result << "\", " << printDouble(real) << ", " -- GitLab