From 39a3eddd533b7d70c5f80ac0946731396b50e568 Mon Sep 17 00:00:00 2001
From: Mikhail Svechnikov <m.svechnikov@fz-juelich.de>
Date: Wed, 27 Apr 2022 10:22:09 +0200
Subject: [PATCH] example scripts yapf-formated

---
 Examples/ff/Bipyramid4.py          |  6 ++----
 Examples/ff/Box.py                 |  6 ++----
 Examples/ff/CantellatedCube.py     |  6 ++----
 Examples/ff/Cone.py                |  6 ++----
 Examples/ff/Cylinder.py            |  6 ++----
 Examples/ff/Dodecahedron.py        |  7 ++-----
 Examples/ff/EllipsoidalCylinder.py |  6 ++----
 Examples/ff/FullSphere.py          |  6 ++----
 Examples/ff/FullSpheroid.py        |  6 ++----
 Examples/ff/HemiEllipsoid.py       |  6 ++----
 Examples/ff/HorizontalCylinder.py  |  6 ++----
 Examples/ff/Icosahedron.py         |  7 ++-----
 Examples/ff/PlatonicOctahedron.py  |  7 ++-----
 Examples/ff/PlatonicTetrahedron.py |  7 ++-----
 Examples/ff/Prism3.py              |  6 ++----
 Examples/ff/Prism6.py              |  6 ++----
 Examples/ff/Pyramid2.py            |  6 ++----
 Examples/ff/Pyramid3.py            |  6 ++----
 Examples/ff/Pyramid4.py            |  5 ++---
 Examples/ff/Pyramid6.py            |  6 ++----
 Examples/ff/SasCosineRipple.py     |  8 ++++----
 Examples/ff/SasDodecahedron_asy.py | 12 ++++++------
 Examples/ff/SasIcosahedron_asy.py  | 12 ++++++------
 Examples/ff/SawtoothRipple.py      |  6 ++----
 Examples/ff/TruncatedCube.py       |  6 ++----
 Examples/ff/TruncatedSphere.py     |  6 ++----
 Examples/ff/TruncatedSpheroid.py   |  6 ++----
 Examples/ff/sim_demo_1quadrants.py |  6 +++---
 Examples/ff/sim_demo_4quadrants.py |  6 +++---
 Examples/ff/sim_det_box.py         |  2 +-
 30 files changed, 71 insertions(+), 122 deletions(-)

diff --git a/Examples/ff/Bipyramid4.py b/Examples/ff/Bipyramid4.py
index bb41eba8007..a89edc341a2 100755
--- a/Examples/ff/Bipyramid4.py
+++ b/Examples/ff/Bipyramid4.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorBipyramid4(8*nm, 4.3*nm, 0.5, 70*deg)
+ff = ba.FormFactorBipyramid4(8 * nm, 4.3 * nm, 0.5, 70 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Box.py b/Examples/ff/Box.py
index 1c0d1d1c373..dbd4820404c 100755
--- a/Examples/ff/Box.py
+++ b/Examples/ff/Box.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorBox(12*nm, 4.1*nm, 6*nm)
+ff = ba.FormFactorBox(12 * nm, 4.1 * nm, 6 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/CantellatedCube.py b/Examples/ff/CantellatedCube.py
index 08511fdca82..9376b05437c 100755
--- a/Examples/ff/CantellatedCube.py
+++ b/Examples/ff/CantellatedCube.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorCantellatedCube(8*nm, 2.5*nm)
+ff = ba.FormFactorCantellatedCube(8 * nm, 2.5 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Cone.py b/Examples/ff/Cone.py
index 5c562cba39d..6fd9484af24 100755
--- a/Examples/ff/Cone.py
+++ b/Examples/ff/Cone.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorCone(4.25*nm, 12*nm, 75*deg)
+ff = ba.FormFactorCone(4.25 * nm, 12 * nm, 75 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Cylinder.py b/Examples/ff/Cylinder.py
index cd22d8aa324..aedd47e6a55 100755
--- a/Examples/ff/Cylinder.py
+++ b/Examples/ff/Cylinder.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorCylinder(3.6*nm, 7.2*nm)
+ff = ba.FormFactorCylinder(3.6 * nm, 7.2 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Dodecahedron.py b/Examples/ff/Dodecahedron.py
index a4d8e341538..cc68a62e705 100755
--- a/Examples/ff/Dodecahedron.py
+++ b/Examples/ff/Dodecahedron.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorDodecahedron(3.38*nm)
+ff = ba.FormFactorDodecahedron(3.38 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,5 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
-
diff --git a/Examples/ff/EllipsoidalCylinder.py b/Examples/ff/EllipsoidalCylinder.py
index 1205a81f3e1..e1c26c09e32 100755
--- a/Examples/ff/EllipsoidalCylinder.py
+++ b/Examples/ff/EllipsoidalCylinder.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorEllipsoidalCylinder(7.8*nm, 3*nm, 4*nm)
+ff = ba.FormFactorEllipsoidalCylinder(7.8 * nm, 3 * nm, 4 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/FullSphere.py b/Examples/ff/FullSphere.py
index 44a7de74da1..7bbf8f52262 100755
--- a/Examples/ff/FullSphere.py
+++ b/Examples/ff/FullSphere.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorFullSphere(4.13*nm)
+ff = ba.FormFactorFullSphere(4.13 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/FullSpheroid.py b/Examples/ff/FullSpheroid.py
index 104674e78e0..fce1f08b973 100755
--- a/Examples/ff/FullSpheroid.py
+++ b/Examples/ff/FullSpheroid.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorFullSpheroid(6.85*nm, 3*nm)
+ff = ba.FormFactorFullSpheroid(6.85 * nm, 3 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/HemiEllipsoid.py b/Examples/ff/HemiEllipsoid.py
index 4568c74d8ef..c2bdf309924 100755
--- a/Examples/ff/HemiEllipsoid.py
+++ b/Examples/ff/HemiEllipsoid.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorHemiEllipsoid(4.4*nm, 8*nm, 4*nm)
+ff = ba.FormFactorHemiEllipsoid(4.4 * nm, 8 * nm, 4 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/HorizontalCylinder.py b/Examples/ff/HorizontalCylinder.py
index b0329c42e6c..7c061c1bcf5 100755
--- a/Examples/ff/HorizontalCylinder.py
+++ b/Examples/ff/HorizontalCylinder.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorHorizontalCylinder(4*nm, 9*nm, -2*nm, 2.3*nm)
+ff = ba.FormFactorHorizontalCylinder(4 * nm, 9 * nm, -2 * nm, 2.3 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Icosahedron.py b/Examples/ff/Icosahedron.py
index fe6603edfbc..08f70ffd761 100755
--- a/Examples/ff/Icosahedron.py
+++ b/Examples/ff/Icosahedron.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorIcosahedron(5.13*nm)
+ff = ba.FormFactorIcosahedron(5.13 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,5 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
-
diff --git a/Examples/ff/PlatonicOctahedron.py b/Examples/ff/PlatonicOctahedron.py
index 4fe62d4ddf9..0e0954822f9 100644
--- a/Examples/ff/PlatonicOctahedron.py
+++ b/Examples/ff/PlatonicOctahedron.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPlatonicOctahedron(8.55*nm)
+ff = ba.FormFactorPlatonicOctahedron(8.55 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,5 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
-
diff --git a/Examples/ff/PlatonicTetrahedron.py b/Examples/ff/PlatonicTetrahedron.py
index a3b3beafbf4..11be238d317 100644
--- a/Examples/ff/PlatonicTetrahedron.py
+++ b/Examples/ff/PlatonicTetrahedron.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPlatonicTetrahedron(13.6*nm)
+ff = ba.FormFactorPlatonicTetrahedron(13.6 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,5 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
-
diff --git a/Examples/ff/Prism3.py b/Examples/ff/Prism3.py
index d53a23a896d..414dc247de7 100755
--- a/Examples/ff/Prism3.py
+++ b/Examples/ff/Prism3.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPrism3(9.2*nm, 8*nm)
+ff = ba.FormFactorPrism3(9.2 * nm, 8 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Prism6.py b/Examples/ff/Prism6.py
index 0c7bf3e2a86..a3632859fb6 100755
--- a/Examples/ff/Prism6.py
+++ b/Examples/ff/Prism6.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPrism6(3.77*nm, 8*nm)
+ff = ba.FormFactorPrism6(3.77 * nm, 8 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Pyramid2.py b/Examples/ff/Pyramid2.py
index 87bb4dbc621..9cb15f0e78f 100755
--- a/Examples/ff/Pyramid2.py
+++ b/Examples/ff/Pyramid2.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPyramid2(6.4*nm, 13*nm, 7*nm, 70*deg)
+ff = ba.FormFactorPyramid2(6.4 * nm, 13 * nm, 7 * nm, 70 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Pyramid3.py b/Examples/ff/Pyramid3.py
index 6dfe5fc73c7..ebcdce17af7 100755
--- a/Examples/ff/Pyramid3.py
+++ b/Examples/ff/Pyramid3.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPyramid3(14*nm, 6.8*nm, 70*deg)
+ff = ba.FormFactorPyramid3(14 * nm, 6.8 * nm, 70 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/Pyramid4.py b/Examples/ff/Pyramid4.py
index 62f111fa596..557f45f641c 100755
--- a/Examples/ff/Pyramid4.py
+++ b/Examples/ff/Pyramid4.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPyramid4(10*nm, 4*nm, 70*deg)
+ff = ba.FormFactorPyramid4(10 * nm, 4 * nm, 70 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
diff --git a/Examples/ff/Pyramid6.py b/Examples/ff/Pyramid6.py
index 9f70b9481ff..37c637001e2 100755
--- a/Examples/ff/Pyramid6.py
+++ b/Examples/ff/Pyramid6.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorPyramid6(5.43*nm, 6.8*nm, 70*deg)
+ff = ba.FormFactorPyramid6(5.43 * nm, 6.8 * nm, 70 * deg)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/SasCosineRipple.py b/Examples/ff/SasCosineRipple.py
index 7c4e8691d09..447bb1efec2 100755
--- a/Examples/ff/SasCosineRipple.py
+++ b/Examples/ff/SasCosineRipple.py
@@ -6,14 +6,14 @@ import bornagain as ba
 from bornagain import nm, deg
 import bornplot as bp
 
-det = ba.SphericalDetector(bp.simargs['n'], 5*deg, 2.5*deg, 2.5*deg)
+det = ba.SphericalDetector(bp.simargs['n'], 5 * deg, 2.5 * deg, 2.5 * deg)
 n = 4
 results = []
 for i in range(n):
-    omega = 90*i/(n - 1)
+    omega = 90 * i / (n - 1)
     title = r'$\omega=%d^\circ$' % omega
-    ff = ba.FormFactorCosineRipple(25*nm, 10*nm, 8*nm)
-    trafo = ba.RotationZ(omega*deg)
+    ff = ba.FormFactorCosineRipple(25 * nm, 10 * nm, 8 * nm)
+    trafo = ba.RotationZ(omega * deg)
     data = bp.run_simulation(det, ff, trafo)
     results.append(bp.Result(data, title))
 
diff --git a/Examples/ff/SasDodecahedron_asy.py b/Examples/ff/SasDodecahedron_asy.py
index 76018f4ae16..348cd604fff 100755
--- a/Examples/ff/SasDodecahedron_asy.py
+++ b/Examples/ff/SasDodecahedron_asy.py
@@ -7,25 +7,25 @@ from bornagain import nm, deg
 import bornplot as bp
 import math
 
-det = ba.SphericalDetector(bp.simargs['n'], 10*deg, 0, 0)
+det = ba.SphericalDetector(bp.simargs['n'], 10 * deg, 0, 0)
 n = 3
 results = []
 edge = 3.2
 
 title = 'default'
-ff = ba.FormFactorDodecahedron(edge*nm)
+ff = ba.FormFactorDodecahedron(edge * nm)
 data = bp.run_simulation(det, ff)
 results.append(bp.Result(0, data, title))
 
 title = 'rotated'
-trafo = ba.RotationZ(13*deg)
-ff = ba.FormFactorDodecahedron(edge*nm)
+trafo = ba.RotationZ(13 * deg)
+ff = ba.FormFactorDodecahedron(edge * nm)
 data = bp.run_simulation(det, ff, trafo)
 results.append(bp.Result(1, data, title))
 
 title = 'rotated, tilted'
-trafo = ba.createProduct(ba.RotationX(9*deg), ba.RotationZ(13*deg))
-ff = ba.FormFactorDodecahedron(edge*nm)
+trafo = ba.createProduct(ba.RotationX(9 * deg), ba.RotationZ(13 * deg))
+ff = ba.FormFactorDodecahedron(edge * nm)
 data = bp.run_simulation(det, ff, trafo)
 results.append(bp.Result(2, data, title))
 
diff --git a/Examples/ff/SasIcosahedron_asy.py b/Examples/ff/SasIcosahedron_asy.py
index 8f81c6b8ea3..3a0a8690461 100755
--- a/Examples/ff/SasIcosahedron_asy.py
+++ b/Examples/ff/SasIcosahedron_asy.py
@@ -7,25 +7,25 @@ from bornagain import nm, deg
 import bornplot as bp
 import math
 
-det = ba.SphericalDetector(bp.simargs['n'], 10*deg, 0, 0)
+det = ba.SphericalDetector(bp.simargs['n'], 10 * deg, 0, 0)
 n = 3
 results = []
 edge = 4.8
 
 title = 'default'
-ff = ba.FormFactorIcosahedron(edge*nm)
+ff = ba.FormFactorIcosahedron(edge * nm)
 data = bp.run_simulation(det, ff)
 results.append(bp.Result(0, data, title))
 
 title = 'rotated'
-trafo = ba.RotationZ(13*deg)
-ff = ba.FormFactorIcosahedron(edge*nm)
+trafo = ba.RotationZ(13 * deg)
+ff = ba.FormFactorIcosahedron(edge * nm)
 data = bp.run_simulation(det, ff, trafo)
 results.append(bp.Result(1, data, title))
 
 title = 'rotated, tilted'
-trafo = ba.createProduct(ba.RotationX(9*deg), ba.RotationZ(13*deg))
-ff = ba.FormFactorIcosahedron(edge*nm)
+trafo = ba.createProduct(ba.RotationX(9 * deg), ba.RotationZ(13 * deg))
+ff = ba.FormFactorIcosahedron(edge * nm)
 data = bp.run_simulation(det, ff, trafo)
 results.append(bp.Result(2, data, title))
 
diff --git a/Examples/ff/SawtoothRipple.py b/Examples/ff/SawtoothRipple.py
index bbd3b1867cb..9fe7db6d5b3 100755
--- a/Examples/ff/SawtoothRipple.py
+++ b/Examples/ff/SawtoothRipple.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorSawtoothRippleBox(20*nm, 6.3*nm, 4.7*nm, 3*nm)
+ff = ba.FormFactorSawtoothRippleBox(20 * nm, 6.3 * nm, 4.7 * nm, 3 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/TruncatedCube.py b/Examples/ff/TruncatedCube.py
index 1dc8ca6331e..4726258dfa2 100755
--- a/Examples/ff/TruncatedCube.py
+++ b/Examples/ff/TruncatedCube.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorTruncatedCube(6.74*nm, 2*nm)
+ff = ba.FormFactorTruncatedCube(6.74 * nm, 2 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationZ(omega*deg))
+    particle.setRotation(ba.RotationZ(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/TruncatedSphere.py b/Examples/ff/TruncatedSphere.py
index 4d0031c447c..0abc672ea33 100755
--- a/Examples/ff/TruncatedSphere.py
+++ b/Examples/ff/TruncatedSphere.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorTruncatedSphere(7*nm, 4.25*nm, 1*nm)
+ff = ba.FormFactorTruncatedSphere(7 * nm, 4.25 * nm, 1 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/TruncatedSpheroid.py b/Examples/ff/TruncatedSpheroid.py
index 87be5bf3ed2..f9a3fdffdfb 100755
--- a/Examples/ff/TruncatedSpheroid.py
+++ b/Examples/ff/TruncatedSpheroid.py
@@ -3,14 +3,13 @@
 import bornagain as ba
 from bornagain import ba_plot as bp, deg, nm, std_samples, std_simulations
 
-
 material_particle = ba.HomogeneousMaterial("Particle", 1e-6, 0)
-ff = ba.FormFactorTruncatedSpheroid(7*nm, 6.*nm, 1.9, 2.3*nm)
+ff = ba.FormFactorTruncatedSpheroid(7 * nm, 6. * nm, 1.9, 2.3 * nm)
 
 
 def get_sample(omega):
     particle = ba.Particle(material_particle, ff)
-    particle.setRotation(ba.RotationY(omega*deg))
+    particle.setRotation(ba.RotationY(omega * deg))
     return std_samples.sas_sample_with_particle(particle)
 
 
@@ -32,4 +31,3 @@ if __name__ == '__main__':
         results.append(result)
 
     bp.make_plot_row(results)
-
diff --git a/Examples/ff/sim_demo_1quadrants.py b/Examples/ff/sim_demo_1quadrants.py
index 847e4cf75b1..5a09477918b 100755
--- a/Examples/ff/sim_demo_1quadrants.py
+++ b/Examples/ff/sim_demo_1quadrants.py
@@ -6,15 +6,15 @@ import bornagain as ba
 from bornagain import nm, deg
 import bornplot as bp
 
-det = ba.SphericalDetector(bp.simargs['n'], 5*deg, 2.5*deg, 2.5*deg)
+det = ba.SphericalDetector(bp.simargs['n'], 5 * deg, 2.5 * deg, 2.5 * deg)
 pars = [0, 5, 10, 20]
 n = len(pars)
 results = []
 for i in range(n):
     theta = pars[i]
     title = r'$\vartheta=%d^\circ$' % theta
-    ff = ba.FormFactorTruncatedSphere(4.2*nm, 6.1*nm, 0)
-    trafo = ba.RotationY(theta*deg)
+    ff = ba.FormFactorTruncatedSphere(4.2 * nm, 6.1 * nm, 0)
+    trafo = ba.RotationY(theta * deg)
     data = bp.run_simulation(det, ff, trafo)
     results.append(bp.Result(data, title))
 
diff --git a/Examples/ff/sim_demo_4quadrants.py b/Examples/ff/sim_demo_4quadrants.py
index 94075e26105..b229cef30ee 100755
--- a/Examples/ff/sim_demo_4quadrants.py
+++ b/Examples/ff/sim_demo_4quadrants.py
@@ -6,15 +6,15 @@ import bornagain as ba
 from bornagain import nm, deg
 import bornplot as bp
 
-det = ba.SphericalDetector(bp.simargs['n'], 10*deg, 0, 0)
+det = ba.SphericalDetector(bp.simargs['n'], 10 * deg, 0, 0)
 pars = [0, 5, 10, 20]
 n = len(pars)
 results = []
 for i in range(n):
     theta = pars[i]
     title = r'$\vartheta=%d^\circ$' % theta
-    ff = ba.FormFactorTruncatedSphere(4.2*nm, 6.1*nm, 0)
-    trafo = ba.RotationY(theta*deg)
+    ff = ba.FormFactorTruncatedSphere(4.2 * nm, 6.1 * nm, 0)
+    trafo = ba.RotationY(theta * deg)
     data = bp.run_simulation(det, ff, trafo)
     results.append(bp.Result(data, title))
 
diff --git a/Examples/ff/sim_det_box.py b/Examples/ff/sim_det_box.py
index ef8c90d774d..d93d59137b5 100755
--- a/Examples/ff/sim_det_box.py
+++ b/Examples/ff/sim_det_box.py
@@ -6,7 +6,7 @@ import bornagain as ba
 from bornagain import nm, deg
 import bornplot as bp
 
-det = ba.SphericalDetector(bp.simargs['n'], 5*deg, 2.5*deg, 2.5*deg)
+det = ba.SphericalDetector(bp.simargs['n'], 5 * deg, 2.5 * deg, 2.5 * deg)
 n = 3
 results = []
 for i in range(n):
-- 
GitLab