From 7c47caa9601dbc7dba6019e208a7ae107429542f Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Fri, 4 Feb 2022 20:49:40 +0100
Subject: [PATCH] hugo update class -> AlphaScan

---
 hugo/content/py/simulation/reflectometry/_index.md          | 2 +-
 .../simulation/ex06_Reflectometry/AlternatingLayers.py      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hugo/content/py/simulation/reflectometry/_index.md b/hugo/content/py/simulation/reflectometry/_index.md
index d787af9dffe..15b6cc8b15a 100644
--- a/hugo/content/py/simulation/reflectometry/_index.md
+++ b/hugo/content/py/simulation/reflectometry/_index.md
@@ -53,7 +53,7 @@ Samples are always of type
 The function ***get_simulation*** constructs a
 {{% api-class "SpecularSimulation" %}}.
 The constructor
-{{% api-class "AngularSpecScan" %}} defines a scan
+{{% api-class "AlphaScan" %}} defines a scan
 as function of inclination angles.
 The arguments are wavelength, number of points, initial angle, final angle.
 
diff --git a/hugo/static/files/python/simulation/ex06_Reflectometry/AlternatingLayers.py b/hugo/static/files/python/simulation/ex06_Reflectometry/AlternatingLayers.py
index 9b957efe501..95597dea773 100644
--- a/hugo/static/files/python/simulation/ex06_Reflectometry/AlternatingLayers.py
+++ b/hugo/static/files/python/simulation/ex06_Reflectometry/AlternatingLayers.py
@@ -23,7 +23,7 @@ def get_sample():
     # Define sample
     sample = ba.MultiLayer()
     sample.addLayer(ambient_layer)
-    for i in range(10):
+    for _ in range(10):
         sample.addLayer(ti_layer)
         sample.addLayer(ni_layer)
     sample.addLayer(substrate_layer)
@@ -33,14 +33,14 @@ def get_sample():
 
 def get_simulation(sample, scan_size=500):
     simulation = ba.SpecularSimulation()
-    scan = ba.AngularSpecScan(1.54*angstrom, scan_size, 0, 2*deg)
+    scan = ba.AlphaScan(1.54*angstrom, scan_size, 0, 2*deg)
     simulation.setScan(scan)
     simulation.setSample(sample)
     return simulation
 
 
 if __name__ == '__main__':
-    import ba_plot
+    from bornagain import ba_plot
     sample = get_sample()
     simulation = get_simulation(sample)
     ba_plot.run_and_plot(simulation)
-- 
GitLab