A multilayer fitting model#

One of the main tools in EasyReflectometry is the item library. This allows the user to define their model, using specific parameters for their system of interest (if it is included in the item library). These items will impose necessary constraints and computational efficiencies based on the item that is used.

In this tutorial, we will look at one of these items, that of a RepeatingMultiLayer (documented here). This tutorial is based on an example from the BornAgain documentation looking at specular reflectivity analysis. Before performing analysis, we should import the packages that we need.

[1]:
import numpy as np
import scipp as sc
import EasyReflectometry
import refl1d
from EasyReflectometry.data import load
from EasyReflectometry.sample import Layer, Structure
from EasyReflectometry.sample.material import Material
from EasyReflectometry.sample.item import RepeatingMultiLayer
from EasyReflectometry.experiment.model import Model
from EasyReflectometry.interface import InterfaceFactory as Interface
from EasyReflectometry.fitting import Fitter
from EasyReflectometry.plot import plot

As mentioned in the previous tutorial, we share the version of the software packages we will use.

[2]:
print(f'numpy: {np.__version__}')
print(f'scipp: {sc.__version__}')
print(f'EasyReflectometry: {EasyReflectometry.__version__}')
print(f'Refl1D: {refl1d.__version__}')
numpy: 1.23.3
scipp: 0.13.1
EasyReflectometry: 0.0.2
Refl1D: 0.8.15

Reading in experimental data#

The data that we will investigate in this tutorial was generated with GenX and is stored in an .ort format file.

[3]:
data = load('_static/repeating_layers.ort')
data
[3]:
Show/Hide data repr Show/Hide attributes
scipp.Dataset (12.51 KB)
    • Qz_0: 400
    • Qz_0
      (Qz_0)
      float64
      1/Å
      0.001, 0.002, ..., 0.708, 0.710
      σ = 0.0, 0.0, ..., 0.0, 0.0
      Values:
      array([0.00071209, 0.00249232, 0.00427256, 0.00605279, 0.00783302, 0.00961325, 0.01139348, 0.01317371, 0.01495394, 0.01673417, 0.01851439, 0.02029462, 0.02207485, 0.02385507, 0.02563529, 0.02741552, 0.02919574, 0.03097596, 0.03275617, 0.03453639, 0.03631661, 0.03809682, 0.03987703, 0.04165724, 0.04343745, 0.04521765, 0.04699786, 0.04877806, 0.05055826, 0.05233845, 0.05411865, 0.05589884, 0.05767903, 0.05945921, 0.06123939, 0.06301957, 0.06479975, 0.06657993, 0.0683601 , 0.07014026, 0.07192043, 0.07370059, 0.07548075, 0.0772609 , 0.07904105, 0.0808212 , 0.08260134, 0.08438148, 0.08616161, 0.08794174, 0.08972187, 0.09150199, 0.09328211, 0.09506222, 0.09684233, 0.09862243, 0.10040253, 0.10218263, 0.10396272, 0.1057428 , 0.10752288, 0.10930296, 0.11108303, 0.11286309, 0.11464315, 0.1164232 , 0.11820325, 0.11998329, 0.12176333, 0.12354336, 0.12532338, 0.1271034 , 0.12888341, 0.13066342, 0.13244342, 0.13422341, 0.1360034 , 0.13778338, 0.13956336, 0.14134333, 0.14312329, 0.14490324, 0.14668319, 0.14846313, 0.15024306, 0.15202299, 0.15380291, 0.15558282, 0.15736272, 0.15914262, 0.16092251, 0.16270239, 0.16448227, 0.16626213, 0.16804199, 0.16982184, 0.17160168, 0.17338152, 0.17516134, 0.17694116, 0.17872097, 0.18050077, 0.18228056, 0.18406034, 0.18584012, 0.18761988, 0.18939964, 0.19117939, 0.19295913, 0.19473886, 0.19651858, 0.19829829, 0.20007799, 0.20185768, 0.20363736, 0.20541703, 0.2071967 , 0.20897635, 0.21075599, 0.21253562, 0.21431525, 0.21609486, 0.21787446, 0.21965405, 0.22143363, 0.22321321, 0.22499277, 0.22677231, 0.22855185, 0.23033138, 0.2321109 , 0.2338904 , 0.2356699 , 0.23744938, 0.23922885, 0.24100831, 0.24278776, 0.2445672 , 0.24634663, 0.24812604, 0.24990544, 0.25168484, 0.25346421, 0.25524358, 0.25702294, 0.25880228, 0.26058161, 0.26236092, 0.26414023, 0.26591952, 0.2676988 , 0.26947807, 0.27125732, 0.27303656, 0.27481579, 0.27659501, 0.27837421, 0.2801534 , 0.28193257, 0.28371174, 0.28549088, 0.28727002, 0.28904914, 0.29082825, 0.29260734, 0.29438642, 0.29616549, 0.29794454, 0.29972358, 0.3015026 , 0.30328161, 0.3050606 , 0.30683958, 0.30861855, 0.3103975 , 0.31217644, 0.31395536, 0.31573426, 0.31751315, 0.31929203, 0.32107089, 0.32284974, 0.32462857, 0.32640738, 0.32818618, 0.32996496, 0.33174373, 0.33352248, 0.33530122, 0.33707994, 0.33885864, 0.34063733, 0.342416 , 0.34419466, 0.3459733 , 0.34775192, 0.34953053, 0.35130911, 0.35308769, 0.35486624, 0.35664478, 0.3584233 , 0.36020181, 0.3619803 , 0.36375877, 0.36553722, 0.36731566, 0.36909407, 0.37087248, 0.37265086, 0.37442922, 0.37620757, 0.3779859 , 0.37976421, 0.38154251, 0.38332078, 0.38509904, 0.38687728, 0.3886555 , 0.3904337 , 0.39221188, 0.39399005, 0.3957682 , 0.39754632, 0.39932443, 0.40110252, 0.40288059, 0.40465864, 0.40643667, 0.40821468, 0.40999268, 0.41177065, 0.4135486 , 0.41532654, 0.41710445, 0.41888235, 0.42066022, 0.42243808, 0.42421591, 0.42599373, 0.42777152, 0.42954929, 0.43132705, 0.43310478, 0.43488249, 0.43666018, 0.43843785, 0.4402155 , 0.44199313, 0.44377074, 0.44554833, 0.44732589, 0.44910343, 0.45088096, 0.45265846, 0.45443594, 0.4562134 , 0.45799083, 0.45976825, 0.46154564, 0.46332301, 0.46510036, 0.46687769, 0.46865499, 0.47043227, 0.47220953, 0.47398677, 0.47576398, 0.47754117, 0.47931834, 0.48109549, 0.48287261, 0.48464971, 0.48642679, 0.48820385, 0.48998088, 0.49175788, 0.49353487, 0.49531183, 0.49708877, 0.49886568, 0.50064257, 0.50241944, 0.50419628, 0.5059731 , 0.50774989, 0.50952666, 0.51130341, 0.51308013, 0.51485682, 0.5166335 , 0.51841014, 0.52018677, 0.52196336, 0.52373994, 0.52551649, 0.52729301, 0.52906951, 0.53084598, 0.53262243, 0.53439885, 0.53617525, 0.53795162, 0.53972797, 0.54150429, 0.54328058, 0.54505685, 0.54683309, 0.54860931, 0.5503855 , 0.55216167, 0.5539378 , 0.55571392, 0.55749 , 0.55926606, 0.56104209, 0.5628181 , 0.56459408, 0.56637003, 0.56814595, 0.56992185, 0.57169772, 0.57347356, 0.57524938, 0.57702517, 0.57880093, 0.58057666, 0.58235237, 0.58412805, 0.5859037 , 0.58767932, 0.58945492, 0.59123048, 0.59300602, 0.59478153, 0.59655702, 0.59833247, 0.60010789, 0.60188329, 0.60365866, 0.605434 , 0.60720931, 0.60898459, 0.61075984, 0.61253507, 0.61431026, 0.61608543, 0.61786056, 0.61963567, 0.62141074, 0.62318579, 0.62496081, 0.6267358 , 0.62851076, 0.63028568, 0.63206058, 0.63383545, 0.63561029, 0.63738509, 0.63915987, 0.64093462, 0.64270934, 0.64448402, 0.64625868, 0.6480333 , 0.64980789, 0.65158246, 0.65335699, 0.65513149, 0.65690596, 0.6586804 , 0.6604548 , 0.66222918, 0.66400352, 0.66577783, 0.66755211, 0.66932636, 0.67110058, 0.67287476, 0.67464892, 0.67642304, 0.67819713, 0.67997118, 0.68174521, 0.6835192 , 0.68529316, 0.68706708, 0.68884098, 0.69061484, 0.69238866, 0.69416246, 0.69593622, 0.69770995, 0.69948365, 0.70125731, 0.70303094, 0.70480453, 0.70657809, 0.70835162, 0.71012512])

      Variances (σ²):
      array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
    • R_0
      (Qz_0)
      float64
      𝟙
      1.000, 1.000, ..., 8.973e-08, 3.672e-09
      σ = 1.014e-06, 1.242e-05, ..., 9.005e-08, 3.703e-09
        • orso_header
          ()
          PyObject
          {'data_source': {'owner': {'name': 'Andrew McCluskey', 'affiliation': 'European Spallation Source', 'contact': 'andrew.mccluskey@ess.eu'}, 'experiment': {'title': 'Ni-Ti Multilayer', 'instrument': 'Simulation', 'start_date': '2022-02-01', 'probe': 'x-rays', 'facility': 'Simulated'}, 'sample': {'name': 'Ni-Ti Multilayer on Si', 'category': 'gas / lsolidiquid', 'composition': 'Air / (Ni / Ti) x 10 / Si'}, 'measurement': {'instrument_settings': {'incident_angle': {'magnitude': 3.0, 'unit': 'deg'}, 'wavelength': {'magnitude': 12.0, 'unit': 'angstrom'}, 'polarization': 'unpolarized'}, 'data_files': ['Unknown.nxs'], 'scheme': 'angle-dispersive'}}, 'reduction': {'software': 'ess', 'timestamp': datetime.datetime(2022, 2, 1, 11, 56, 13, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'corrections': ['simulated']}, 'columns': [{'name': 'Qz', 'unit': '1/angstrom', 'dimension': 'WW transfer'}, {'name': 'R', 'dimension': 'reflectivity'}, {'name': 'sR', 'dimension': 'error-reflectivity'}, {'name': 'sQz', 'unit': '1/angstrom', 'dimension': 'resolution-WW transfer'}]}
          Values:
          {'data_source': {'owner': {'name': 'Andrew McCluskey', 'affiliation': 'European Spallation Source', 'contact': 'andrew.mccluskey@ess.eu'}, 'experiment': {'title': 'Ni-Ti Multilayer', 'instrument': 'Simulation', 'start_date': '2022-02-01', 'probe': 'x-rays', 'facility': 'Simulated'}, 'sample': {'name': 'Ni-Ti Multilayer on Si', 'category': 'gas / lsolidiquid', 'composition': 'Air / (Ni / Ti) x 10 / Si'}, 'measurement': {'instrument_settings': {'incident_angle': {'magnitude': 3.0, 'unit': 'deg'}, 'wavelength': {'magnitude': 12.0, 'unit': 'angstrom'}, 'polarization': 'unpolarized'}, 'data_files': ['Unknown.nxs'], 'scheme': 'angle-dispersive'}}, 'reduction': {'software': 'ess', 'timestamp': datetime.datetime(2022, 2, 1, 11, 56, 13, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'corrections': ['simulated']}, 'columns': [{'name': 'Qz', 'unit': '1/angstrom', 'dimension': 'WW transfer'}, {'name': 'R', 'dimension': 'reflectivity'}, {'name': 'sR', 'dimension': 'error-reflectivity'}, {'name': 'sQz', 'unit': '1/angstrom', 'dimension': 'resolution-WW transfer'}]}
      Values:
      array([1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 9.99994575e-01, 9.99954387e-01, 9.99503524e-01, 9.87144413e-01, 5.37099919e-02, 2.27278764e-01, 8.02727372e-02, 1.12659001e-01, 2.59620533e-03, 6.80664252e-02, 2.66331611e-02, 6.81237916e-03, 3.91495753e-02, 1.39036538e-02, 3.77502925e-03, 2.61133525e-02, 1.31791831e-02, 8.99005301e-04, 1.89895100e-02, 1.62084753e-02, 1.54478279e-04, 1.37222155e-02, 2.21939986e-02, 3.37720126e-03, 8.92594255e-03, 3.50555648e-02, 1.89440013e-02, 4.27980709e-03, 1.02748994e-01, 2.36461953e-01, 2.81613618e-01, 2.19323646e-01, 9.69263248e-02, 1.28652574e-02, 1.00516338e-03, 6.55596083e-03, 3.27536554e-03, 6.34617044e-05, 7.38761442e-04, 9.77885216e-04, 1.98659644e-04, 4.33440619e-05, 2.27614961e-04, 1.25986332e-04, 1.01314189e-05, 5.47938938e-05, 6.61478351e-05, 1.14537238e-05, 3.65400205e-05, 9.96800473e-05, 4.58575338e-05, 1.11142493e-05, 1.58776339e-04, 1.96065050e-04, 1.73441991e-05, 1.40166817e-04, 4.83227288e-04, 2.68753043e-04, 2.55777713e-05, 8.70694940e-04, 1.41560462e-03, 2.20213658e-04, 1.46424635e-03, 1.06491607e-02, 2.32928980e-02, 2.74792460e-02, 1.89955476e-02, 6.57147331e-03, 3.96375871e-04, 4.70973905e-04, 1.09674544e-03, 4.04123327e-04, 2.53783607e-06, 2.57577800e-04, 2.68741117e-04, 3.51170030e-05, 3.74355209e-05, 1.31647855e-04, 6.54312069e-05, 2.37577066e-07, 4.29685970e-05, 5.50468134e-05, 1.01018099e-05, 6.01045794e-06, 2.80123777e-05, 1.67588370e-05, 3.84213754e-07, 7.43889671e-06, 1.14412808e-05, 3.19009491e-06, 3.04137591e-07, 2.90040284e-06, 2.55681010e-06, 5.67658007e-07, 9.17604020e-07, 4.07259100e-06, 1.92940032e-06, 9.47215246e-06, 1.08504939e-04, 3.43352225e-04, 5.52119744e-04, 4.99889625e-04, 2.26145593e-04, 2.20134361e-05, 1.71732404e-05, 5.79176552e-05, 2.86644061e-05, 4.02665483e-07, 2.06121168e-05, 2.75629542e-05, 5.11548482e-06, 4.82292945e-06, 2.09822125e-05, 1.27365748e-05, 3.18256727e-07, 1.18765747e-05, 1.77856487e-05, 3.68380187e-06, 3.71913179e-06, 1.78490779e-05, 1.18997057e-05, 2.26938050e-07, 1.26643811e-05, 2.12575898e-05, 5.02130733e-06, 4.61640208e-06, 2.75978141e-05, 2.19163491e-05, 2.33472245e-07, 2.73046544e-05, 6.12993510e-05, 2.17975695e-05, 1.74797612e-05, 2.36019304e-04, 5.84410638e-04, 7.24544529e-04, 5.20539888e-04, 2.01025347e-04, 2.43922198e-05, 2.39472572e-06, 1.45301658e-05, 7.90388470e-06, 4.15405847e-07, 1.27983371e-06, 1.98946222e-06, 5.46663211e-07, 1.99323053e-07, 6.94008205e-07, 4.20997128e-07, 4.28431324e-08, 7.93188713e-07, 1.34334753e-06, 3.28092423e-07, 4.01721242e-07, 2.64583628e-06, 2.40147956e-06, 4.30754229e-08, 2.58141305e-06, 6.41119548e-06, 2.61679031e-06, 6.85366659e-07, 1.02321060e-05, 1.26320648e-05, 1.08712542e-06, 1.00515417e-05, 3.86803239e-05, 2.58157335e-05, 2.28284077e-06, 1.43204576e-04, 4.98867604e-04, 7.96628454e-04, 7.33280438e-04, 3.80245724e-04, 7.88373792e-05, 1.73850823e-07, 2.76931649e-05, 2.62744580e-05, 3.58118387e-06, 2.43984139e-06, 9.52212644e-06, 5.05231740e-06, 2.60738190e-08, 2.40380913e-06, 3.51304709e-06, 8.28092271e-07, 1.89016535e-07, 1.45039803e-06, 1.05733223e-06, 5.60075550e-08, 2.71612209e-07, 5.87701254e-07, 2.27889322e-07, 1.29189567e-08, 1.90619567e-07, 2.10717874e-07, 4.48885980e-08, 2.27021529e-07, 5.58553846e-07, 2.13649665e-07, 2.82894876e-07, 2.40266335e-06, 3.05221862e-06, 8.57425655e-08, 9.31356806e-06, 5.20595061e-05, 1.12018874e-04, 1.34163647e-04, 9.24268178e-05, 2.97058163e-05, 7.81411382e-07, 5.12202168e-06, 8.85138717e-06, 2.63657391e-06, 2.42815574e-07, 3.36971646e-06, 2.99447238e-06, 2.35232071e-07, 9.21981624e-07, 2.36271020e-06, 9.77969683e-07, 6.87906082e-08, 1.35586561e-06, 1.46697862e-06, 1.67516156e-07, 4.81061118e-07, 1.45945832e-06, 7.05622939e-07, 4.51760360e-08, 1.04547812e-06, 1.28854518e-06, 1.78153762e-07, 4.61475882e-07, 1.65899869e-06, 9.45468420e-07, 3.92402666e-08, 1.69555424e-06, 2.70414330e-06, 5.41610295e-07, 1.42991266e-06, 1.06657382e-05, 2.09155638e-05, 2.11803616e-05, 1.21977399e-05, 3.54862181e-06, 2.59208779e-07, 7.78326663e-08, 1.47488421e-07, 3.58393384e-08, 1.50346808e-08, 5.27161781e-08, 4.80283988e-08, 2.48918247e-09, 5.96277459e-08, 1.82283238e-07, 1.05600759e-07, 6.39473958e-09, 2.33842582e-07, 3.63680028e-07, 7.46714984e-08, 1.13426812e-07, 6.03065596e-07, 4.65025814e-07, 3.14142325e-09, 5.66266848e-07, 1.16530624e-06, 3.71448407e-07, 1.97152956e-07, 1.84995709e-06, 1.92022133e-06, 7.77610163e-08, 1.95335731e-06, 6.09067733e-06, 3.31503396e-06, 7.96728181e-07, 2.41788302e-05, 7.55361584e-05, 1.12652930e-04, 9.75314560e-05, 4.71330161e-05, 8.59407046e-06, 1.17965237e-07, 3.70535007e-06, 3.06693835e-06, 3.30219575e-07, 3.47899242e-07, 1.09319441e-06, 5.15404533e-07, 1.75848672e-09, 2.58246460e-07, 3.36916609e-07, 7.25633027e-08, 2.10381251e-08, 1.24271404e-07, 8.39925336e-08, 7.68709516e-09, 3.71038152e-08, 6.29536668e-08, 1.81241630e-08, 2.77981688e-08, 1.14279564e-07, 8.47770004e-08, 5.81680916e-09, 2.11099783e-07, 4.16520605e-07, 1.16565379e-07, 1.73565650e-07, 1.34315441e-06, 1.51817871e-06, 2.23730170e-08, 4.24521369e-06, 2.18649199e-05, 4.41791790e-05, 5.01216782e-05, 3.28949719e-05, 1.01047807e-05, 2.45796950e-07, 1.63638203e-06, 2.73979882e-06, 8.02243316e-07, 5.93053598e-08, 9.25615287e-07, 8.24458674e-07, 7.02499722e-08, 2.08454785e-07, 5.66535791e-07, 2.47623619e-07, 7.46383398e-09, 2.65158539e-07, 3.07042543e-07, 4.45912876e-08, 6.62210953e-08, 2.37750684e-07, 1.29791323e-07, 3.92564915e-09, 1.20507385e-07, 1.64965798e-07, 3.29210555e-08, 3.21713766e-08, 1.36014210e-07, 8.54210989e-08, 4.33766641e-09, 7.57097221e-08, 1.14671963e-07, 2.71476474e-08, 2.36662037e-08, 1.10255329e-07, 8.22796486e-08, 6.09466544e-09, 4.67287881e-08, 8.41712226e-08, 2.22586537e-08, 1.93638172e-08, 9.16388052e-08, 6.55517754e-08, 3.76256334e-09, 6.31751154e-08, 1.08121837e-07, 2.89999592e-08, 2.07552762e-08, 1.19219687e-07, 9.37314235e-08, 3.56124877e-09, 8.31249622e-08, 1.65270291e-07, 5.24085540e-08, 2.26558728e-08, 1.90492736e-07, 1.78219669e-07, 8.22567810e-09, 1.32845360e-07, 3.36415820e-07, 1.40788083e-07, 2.63554968e-08, 4.30534750e-07, 5.28191035e-07, 5.21337282e-08, 3.49973333e-07, 1.36130817e-06, 9.17998762e-07, 5.16866840e-08, 4.21796253e-06, 1.45518228e-05, 2.27146265e-05, 2.04257062e-05, 1.04321971e-05, 2.21961340e-06, 9.99065951e-10, 5.82211179e-07, 5.82062276e-07, 9.50871894e-08, 3.23512397e-08, 1.55320777e-07, 8.97346175e-08, 3.67177449e-09])

      Variances (σ²):
      array([1.02850415e-12, 1.54339896e-10, 1.33294115e-09, 5.36885402e-09, 1.50583201e-08, 3.41617983e-08, 6.74032295e-08, 1.20462700e-07, 1.99825504e-07, 3.05659337e-07, 1.35583901e-09, 3.50510812e-08, 6.12049930e-09, 1.64404840e-08, 1.16437071e-11, 1.04691540e-08, 2.06149936e-09, 1.70905694e-10, 7.05808401e-09, 1.10008364e-09, 9.91566083e-11, 5.74566274e-09, 1.75682389e-09, 9.73523582e-12, 5.13505031e-09, 4.39315359e-09, 4.65700856e-13, 4.26389460e-09, 1.28735831e-08, 3.42339792e-10, 2.73373152e-09, 4.79937881e-08, 1.58882144e-08, 9.15766954e-10, 5.93934713e-07, 3.52764123e-06, 5.59320408e-06, 3.78097783e-06, 8.20642783e-07, 1.60238379e-08, 1.08129046e-10, 5.07243547e-09, 1.39291396e-09, 5.74014035e-13, 8.52077782e-11, 1.63206276e-10, 7.34898981e-12, 3.80984851e-13, 1.14213347e-11, 3.79740672e-12, 2.66068689e-14, 8.41872807e-13, 1.32520988e-12, 4.28533945e-14, 4.69741008e-13, 3.75992620e-12, 8.54791228e-13, 5.38677104e-14, 1.17799119e-11, 1.92248790e-11, 1.60831853e-13, 1.12170342e-11, 1.42217713e-10, 4.68785863e-11, 4.52040975e-13, 5.57121833e-10, 1.56480992e-09, 4.02005110e-11, 1.88518650e-09, 1.05674051e-07, 5.35347125e-07, 7.88312301e-07, 3.98246301e-07, 5.03502439e-08, 1.93373059e-10, 2.87982975e-10, 1.64615512e-09, 2.35437269e-10, 9.77400966e-15, 1.05920025e-10, 1.21218648e-10, 2.17473971e-12, 2.59507029e-12, 3.36792189e-11, 8.72584652e-12, 1.20588555e-16, 4.13257297e-12, 7.10184053e-12, 2.50302873e-13, 9.26874951e-14, 2.10487900e-12, 7.87269631e-13, 4.32197381e-16, 1.69141599e-13, 4.17523138e-13, 3.38564465e-14, 3.20838414e-16, 3.04079977e-14, 2.46155754e-14, 1.26342365e-15, 3.43615416e-15, 7.04235326e-14, 1.64386482e-14, 4.11906137e-13, 5.61716124e-11, 5.84325943e-10, 1.56907297e-09, 1.33528048e-09, 2.83594329e-10, 2.78770052e-12, 1.75945804e-12, 2.07471178e-11, 5.26675508e-12, 1.07678722e-15, 2.92236878e-12, 5.41074824e-12, 1.92914509e-13, 1.77447691e-13, 3.47441964e-12, 1.32401294e-12, 8.54727050e-16, 1.23032582e-12, 2.85118053e-12, 1.26359938e-13, 1.33020164e-13, 3.16352371e-12, 1.45146527e-12, 5.44797066e-16, 1.75051938e-12, 5.08745386e-12, 2.92735724e-13, 2.55103762e-13, 9.39779183e-12, 6.10774060e-12, 7.14142283e-16, 1.00614706e-11, 5.22250573e-11, 6.79937493e-12, 4.50108761e-12, 8.44587081e-10, 5.32842786e-09, 8.42593977e-09, 4.47336796e-09, 6.86089775e-10, 1.03860440e-11, 1.02906764e-13, 3.89382263e-12, 1.18396209e-12, 3.36003194e-15, 3.27618160e-14, 8.13049697e-14, 6.30366890e-15, 8.60401069e-16, 1.07071144e-14, 4.04375657e-15, 4.29734057e-17, 1.51122467e-14, 4.44652090e-14, 2.72040409e-15, 4.18233477e-15, 1.86017975e-13, 1.57101018e-13, 5.18090734e-17, 1.90687114e-13, 1.20525491e-12, 2.05716411e-13, 1.44558534e-14, 3.30013553e-12, 5.15100901e-12, 3.90646141e-14, 3.41908304e-12, 5.18304163e-11, 2.36305848e-11, 1.89103397e-13, 7.61459203e-10, 9.45433667e-09, 2.46628469e-08, 2.13740608e-08, 5.87808082e-09, 2.58390568e-10, 1.28474583e-15, 3.33278205e-11, 3.06672231e-11, 5.82308472e-13, 2.76225858e-13, 4.29931420e-12, 1.23666520e-12, 3.36488124e-17, 2.92146359e-13, 6.37322948e-13, 3.61652707e-14, 1.92410403e-15, 1.15677955e-13, 6.27623845e-14, 1.79772616e-16, 4.31555553e-15, 2.06211872e-14, 3.16421230e-15, 1.03763634e-17, 2.30490858e-15, 2.87346717e-15, 1.33020026e-16, 3.47038484e-15, 2.14254431e-14, 3.19682087e-15, 5.71526769e-15, 4.20342788e-13, 6.91575437e-13, 5.56354176e-16, 6.69114871e-12, 2.13078206e-10, 1.00543160e-09, 1.46971155e-09, 7.10742264e-10, 7.48022549e-11, 5.27313538e-14, 2.30798275e-12, 7.02062156e-12, 6.34452565e-13, 5.48027382e-15, 1.07480507e-12, 8.64254457e-13, 5.43020992e-15, 8.49288967e-14, 5.67785671e-13, 9.90221463e-14, 4.98681970e-16, 1.97173504e-13, 2.34897884e-13, 3.11693599e-15, 2.61556132e-14, 2.44942948e-13, 5.82521036e-14, 2.42904167e-16, 1.32333316e-13, 2.04469027e-13, 3.97535369e-15, 2.71275289e-14, 3.56533131e-13, 1.17751610e-13, 2.06239266e-16, 3.91503274e-13, 1.01238607e-12, 4.12862765e-14, 2.92527505e-13, 1.65430734e-11, 6.46593464e-11, 6.73888524e-11, 2.27133297e-11, 1.95350297e-12, 1.05910414e-14, 9.70241728e-16, 3.53965839e-15, 2.12337907e-16, 3.79604171e-17, 4.74065666e-16, 3.99694657e-16, 1.09043705e-18, 6.35495782e-16, 6.03131585e-15, 2.05555710e-15, 7.65406977e-18, 1.03924909e-14, 2.55218338e-14, 1.09234079e-15, 2.55876521e-15, 7.34266932e-14, 4.43180211e-14, 2.05284516e-18, 6.77015271e-14, 2.90981433e-13, 3.00045619e-14, 8.57784952e-15, 7.66396038e-13, 8.37852089e-13, 1.39412068e-15, 8.92542085e-13, 8.80364541e-12, 2.64576189e-12, 1.55030142e-13, 1.44832181e-10, 1.43377459e-09, 3.23452642e-09, 2.45894010e-09, 5.82398375e-10, 1.96361872e-11, 3.75176590e-15, 3.75347236e-12, 2.60741919e-12, 3.06486614e-14, 3.44903179e-14, 3.45261980e-13, 7.78025188e-14, 9.18117501e-19, 2.00720401e-14, 3.46298184e-14, 1.62817894e-15, 1.38715500e-16, 4.90542384e-15, 2.27101060e-15, 1.92773163e-17, 4.55118174e-16, 1.32762352e-15, 1.11500189e-16, 2.65766334e-16, 4.55086415e-15, 2.53736704e-15, 1.21017669e-17, 1.61468667e-14, 6.36796856e-14, 5.05200951e-15, 1.13457072e-14, 6.88203634e-13, 8.90541405e-13, 1.95876779e-16, 7.14234600e-12, 1.91879239e-10, 7.93305640e-10, 1.03398026e-09, 4.50981472e-10, 4.30898523e-11, 2.58153974e-14, 1.15846524e-12, 3.28792558e-12, 2.85398204e-13, 1.57893687e-15, 3.89367173e-13, 3.12709566e-13, 2.29818269e-15, 2.04827701e-14, 1.53135661e-13, 2.96105521e-14, 2.72277157e-17, 3.47782435e-14, 4.71940234e-14, 1.00732091e-15, 2.24813814e-15, 2.93238442e-14, 8.84301692e-15, 8.18556561e-18, 7.80466988e-15, 1.47979481e-14, 5.96255925e-16, 5.76077852e-16, 1.04172331e-14, 4.15663008e-15, 1.08426647e-17, 3.34137481e-15, 7.75389868e-15, 4.39581516e-16, 3.37899353e-16, 7.41771780e-15, 4.17813869e-15, 2.31851862e-17, 1.37841121e-15, 4.52295313e-15, 3.19862904e-16, 2.44796729e-16, 5.54404111e-15, 2.86857965e-15, 9.55614102e-18, 2.72402138e-15, 8.06743441e-15, 5.86786767e-16, 3.03882941e-16, 1.01366833e-14, 6.33443593e-15, 9.24414561e-18, 5.09139521e-15, 2.03452195e-14, 2.06806078e-15, 3.90655549e-16, 2.79158001e-14, 2.46974881e-14, 5.31766210e-17, 1.40182395e-14, 9.08582851e-14, 1.60820807e-14, 5.69559851e-16, 1.53598764e-13, 2.33623004e-13, 2.29996559e-15, 1.04735022e-13, 1.60125783e-12, 7.35778426e-13, 2.35680098e-15, 1.58584959e-11, 1.90708776e-10, 4.69477529e-10, 3.83542904e-10, 1.01077863e-10, 4.62266509e-12, 9.46123815e-19, 3.24587157e-13, 3.27724190e-13, 8.83490247e-15, 1.03303872e-15, 2.40524753e-14, 8.10915489e-15, 1.37136003e-17])

This data is very featureful, with many fringes present (arising from the multilayer structure)

[4]:
plot(data)
[4]:

Building our model#

The system that was used to produce the data shown above is based on a silicon subphase, with a repeating multilayer of nickel and titanium grown upon it. Typcially, under experimental conditions, the producer of the sample will know how many repeats there will be of the multilayer system (as these are grown using some vapour disposition or sputtering method that the producer controls). We show the model that will be used graphically below.

A slab model description of the repeating multilayer system.

A slab model description of the repeating multilayer, showing the four layers of vacuum, titanium, nickel and silicon, with the titanium/nickel layers being repeated 10 times.

To construct such a layer structure, first we create each of the materials and associated layers

[5]:
vacuum = Material.from_pars(0, 0, 'Vacuum')
ti = Material.from_pars(-1.9493, 0, 'Ti')
ni = Material.from_pars(9.4245, 0, 'Ni')
si = Material.from_pars(2.0704, 0, 'Si')
[6]:
superphase = Layer.from_pars(vacuum, 0, 0, 'Vacuum Superphase')
ti_layer = Layer.from_pars(ti, 40, 0, 'Ti Layer')
ni_layer = Layer.from_pars(ni, 70, 0, 'Ni Layer')
subphase = Layer.from_pars(si, 0, 0, 'Si Subphase')

Then, to produce the repeating multilayer, we use the RepeatingMultilayer item type. This can be constructed in a range of different ways, however here we pass a list of Layer type objects and a number of repetitions.

[7]:
rep_multilayer = RepeatingMultiLayer.from_pars([ti_layer, ni_layer], repetitions=10, name='NiTi Multilayer')
rep_multilayer
[7]:
NiTi Multilayer:
  Ti Layer/Ni Layer:
  - Ti Layer:
      material:
        Ti:
          sld: -1.949e-6 1 / angstrom ** 2
          isld: 0.000e-6 1 / angstrom ** 2
      thickness: 40.000 angstrom
      roughness: 0.000 angstrom
  - Ni Layer:
      material:
        Ni:
          sld: 9.425e-6 1 / angstrom ** 2
          isld: 0.000e-6 1 / angstrom ** 2
      thickness: 70.000 angstrom
      roughness: 0.000 angstrom
  repetitions: 10.0

From these objects, we can construct our structure and combine this with a scaling, background and resolution (since this data is simulated there is no background or resolution smearing).

[8]:
structure = Structure.from_pars(superphase, rep_multilayer, subphase, name='Multilayer Structure')
model = Model.from_pars(structure, 1, 0, 0, 'Multilayer Model')

In the analysis, we will only vary a single parameter, the thickness of titanium layer.

[9]:
ti_layer.thickness.bounds = (10, 60)

Choosing our calculation engine#

In the previous tutorial, we used the default refnx engine for our analysis. Here, we will change our engine to be Refl1D. This is achieved with the interface.switch('refl1d') method below.

[10]:
interface = Interface()
interface.switch('refl1d')
model.interface = interface
print(interface.current_interface.name)
refl1d

Performing an optimisation#

The easyScience framework allows us to access a broad range of optimisation methods. Below, we have selected the differential evolution method from lmfit.

[11]:
fitter = Fitter([model], [interface.fit_func])
analysed = fitter.fit(data, method='differential_evolution')
analysed
/opt/hostedtoolcache/Python/3.9.14/x64/lib/python3.9/site-packages/easyCore/Utils/UndoRedo.py:460: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
  if new_value == old_value:
[11]:
Show/Hide data repr Show/Hide attributes
scipp.Dataset (175.02 KB)
    • Qz_0: 400
    • z_0: 10200
    • Qz_0
      (Qz_0)
      float64
      1/Å
      0.001, 0.002, ..., 0.708, 0.710
      σ = 0.0, 0.0, ..., 0.0, 0.0
      Values:
      array([0.00071209, 0.00249232, 0.00427256, 0.00605279, 0.00783302, 0.00961325, 0.01139348, 0.01317371, 0.01495394, 0.01673417, 0.01851439, 0.02029462, 0.02207485, 0.02385507, 0.02563529, 0.02741552, 0.02919574, 0.03097596, 0.03275617, 0.03453639, 0.03631661, 0.03809682, 0.03987703, 0.04165724, 0.04343745, 0.04521765, 0.04699786, 0.04877806, 0.05055826, 0.05233845, 0.05411865, 0.05589884, 0.05767903, 0.05945921, 0.06123939, 0.06301957, 0.06479975, 0.06657993, 0.0683601 , 0.07014026, 0.07192043, 0.07370059, 0.07548075, 0.0772609 , 0.07904105, 0.0808212 , 0.08260134, 0.08438148, 0.08616161, 0.08794174, 0.08972187, 0.09150199, 0.09328211, 0.09506222, 0.09684233, 0.09862243, 0.10040253, 0.10218263, 0.10396272, 0.1057428 , 0.10752288, 0.10930296, 0.11108303, 0.11286309, 0.11464315, 0.1164232 , 0.11820325, 0.11998329, 0.12176333, 0.12354336, 0.12532338, 0.1271034 , 0.12888341, 0.13066342, 0.13244342, 0.13422341, 0.1360034 , 0.13778338, 0.13956336, 0.14134333, 0.14312329, 0.14490324, 0.14668319, 0.14846313, 0.15024306, 0.15202299, 0.15380291, 0.15558282, 0.15736272, 0.15914262, 0.16092251, 0.16270239, 0.16448227, 0.16626213, 0.16804199, 0.16982184, 0.17160168, 0.17338152, 0.17516134, 0.17694116, 0.17872097, 0.18050077, 0.18228056, 0.18406034, 0.18584012, 0.18761988, 0.18939964, 0.19117939, 0.19295913, 0.19473886, 0.19651858, 0.19829829, 0.20007799, 0.20185768, 0.20363736, 0.20541703, 0.2071967 , 0.20897635, 0.21075599, 0.21253562, 0.21431525, 0.21609486, 0.21787446, 0.21965405, 0.22143363, 0.22321321, 0.22499277, 0.22677231, 0.22855185, 0.23033138, 0.2321109 , 0.2338904 , 0.2356699 , 0.23744938, 0.23922885, 0.24100831, 0.24278776, 0.2445672 , 0.24634663, 0.24812604, 0.24990544, 0.25168484, 0.25346421, 0.25524358, 0.25702294, 0.25880228, 0.26058161, 0.26236092, 0.26414023, 0.26591952, 0.2676988 , 0.26947807, 0.27125732, 0.27303656, 0.27481579, 0.27659501, 0.27837421, 0.2801534 , 0.28193257, 0.28371174, 0.28549088, 0.28727002, 0.28904914, 0.29082825, 0.29260734, 0.29438642, 0.29616549, 0.29794454, 0.29972358, 0.3015026 , 0.30328161, 0.3050606 , 0.30683958, 0.30861855, 0.3103975 , 0.31217644, 0.31395536, 0.31573426, 0.31751315, 0.31929203, 0.32107089, 0.32284974, 0.32462857, 0.32640738, 0.32818618, 0.32996496, 0.33174373, 0.33352248, 0.33530122, 0.33707994, 0.33885864, 0.34063733, 0.342416 , 0.34419466, 0.3459733 , 0.34775192, 0.34953053, 0.35130911, 0.35308769, 0.35486624, 0.35664478, 0.3584233 , 0.36020181, 0.3619803 , 0.36375877, 0.36553722, 0.36731566, 0.36909407, 0.37087248, 0.37265086, 0.37442922, 0.37620757, 0.3779859 , 0.37976421, 0.38154251, 0.38332078, 0.38509904, 0.38687728, 0.3886555 , 0.3904337 , 0.39221188, 0.39399005, 0.3957682 , 0.39754632, 0.39932443, 0.40110252, 0.40288059, 0.40465864, 0.40643667, 0.40821468, 0.40999268, 0.41177065, 0.4135486 , 0.41532654, 0.41710445, 0.41888235, 0.42066022, 0.42243808, 0.42421591, 0.42599373, 0.42777152, 0.42954929, 0.43132705, 0.43310478, 0.43488249, 0.43666018, 0.43843785, 0.4402155 , 0.44199313, 0.44377074, 0.44554833, 0.44732589, 0.44910343, 0.45088096, 0.45265846, 0.45443594, 0.4562134 , 0.45799083, 0.45976825, 0.46154564, 0.46332301, 0.46510036, 0.46687769, 0.46865499, 0.47043227, 0.47220953, 0.47398677, 0.47576398, 0.47754117, 0.47931834, 0.48109549, 0.48287261, 0.48464971, 0.48642679, 0.48820385, 0.48998088, 0.49175788, 0.49353487, 0.49531183, 0.49708877, 0.49886568, 0.50064257, 0.50241944, 0.50419628, 0.5059731 , 0.50774989, 0.50952666, 0.51130341, 0.51308013, 0.51485682, 0.5166335 , 0.51841014, 0.52018677, 0.52196336, 0.52373994, 0.52551649, 0.52729301, 0.52906951, 0.53084598, 0.53262243, 0.53439885, 0.53617525, 0.53795162, 0.53972797, 0.54150429, 0.54328058, 0.54505685, 0.54683309, 0.54860931, 0.5503855 , 0.55216167, 0.5539378 , 0.55571392, 0.55749 , 0.55926606, 0.56104209, 0.5628181 , 0.56459408, 0.56637003, 0.56814595, 0.56992185, 0.57169772, 0.57347356, 0.57524938, 0.57702517, 0.57880093, 0.58057666, 0.58235237, 0.58412805, 0.5859037 , 0.58767932, 0.58945492, 0.59123048, 0.59300602, 0.59478153, 0.59655702, 0.59833247, 0.60010789, 0.60188329, 0.60365866, 0.605434 , 0.60720931, 0.60898459, 0.61075984, 0.61253507, 0.61431026, 0.61608543, 0.61786056, 0.61963567, 0.62141074, 0.62318579, 0.62496081, 0.6267358 , 0.62851076, 0.63028568, 0.63206058, 0.63383545, 0.63561029, 0.63738509, 0.63915987, 0.64093462, 0.64270934, 0.64448402, 0.64625868, 0.6480333 , 0.64980789, 0.65158246, 0.65335699, 0.65513149, 0.65690596, 0.6586804 , 0.6604548 , 0.66222918, 0.66400352, 0.66577783, 0.66755211, 0.66932636, 0.67110058, 0.67287476, 0.67464892, 0.67642304, 0.67819713, 0.67997118, 0.68174521, 0.6835192 , 0.68529316, 0.68706708, 0.68884098, 0.69061484, 0.69238866, 0.69416246, 0.69593622, 0.69770995, 0.69948365, 0.70125731, 0.70303094, 0.70480453, 0.70657809, 0.70835162, 0.71012512])

      Variances (σ²):
      array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
    • z_0
      (z_0)
      float64
      Å
      -10.0, -9.9, ..., 1009.800, 1009.900
      Values:
      array([ -10. , -9.9, -9.8, ..., 1009.7, 1009.8, 1009.9])
    • R_0
      (Qz_0)
      float64
      𝟙
      1.000, 1.000, ..., 8.973e-08, 3.672e-09
      σ = 1.014e-06, 1.242e-05, ..., 9.005e-08, 3.703e-09
        • orso_header
          ()
          PyObject
          {'data_source': {'owner': {'name': 'Andrew McCluskey', 'affiliation': 'European Spallation Source', 'contact': 'andrew.mccluskey@ess.eu'}, 'experiment': {'title': 'Ni-Ti Multilayer', 'instrument': 'Simulation', 'start_date': '2022-02-01', 'probe': 'x-rays', 'facility': 'Simulated'}, 'sample': {'name': 'Ni-Ti Multilayer on Si', 'category': 'gas / lsolidiquid', 'composition': 'Air / (Ni / Ti) x 10 / Si'}, 'measurement': {'instrument_settings': {'incident_angle': {'magnitude': 3.0, 'unit': 'deg'}, 'wavelength': {'magnitude': 12.0, 'unit': 'angstrom'}, 'polarization': 'unpolarized'}, 'data_files': ['Unknown.nxs'], 'scheme': 'angle-dispersive'}}, 'reduction': {'software': 'ess', 'timestamp': datetime.datetime(2022, 2, 1, 11, 56, 13, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'corrections': ['simulated']}, 'columns': [{'name': 'Qz', 'unit': '1/angstrom', 'dimension': 'WW transfer'}, {'name': 'R', 'dimension': 'reflectivity'}, {'name': 'sR', 'dimension': 'error-reflectivity'}, {'name': 'sQz', 'unit': '1/angstrom', 'dimension': 'resolution-WW transfer'}]}
          Values:
          {'data_source': {'owner': {'name': 'Andrew McCluskey', 'affiliation': 'European Spallation Source', 'contact': 'andrew.mccluskey@ess.eu'}, 'experiment': {'title': 'Ni-Ti Multilayer', 'instrument': 'Simulation', 'start_date': '2022-02-01', 'probe': 'x-rays', 'facility': 'Simulated'}, 'sample': {'name': 'Ni-Ti Multilayer on Si', 'category': 'gas / lsolidiquid', 'composition': 'Air / (Ni / Ti) x 10 / Si'}, 'measurement': {'instrument_settings': {'incident_angle': {'magnitude': 3.0, 'unit': 'deg'}, 'wavelength': {'magnitude': 12.0, 'unit': 'angstrom'}, 'polarization': 'unpolarized'}, 'data_files': ['Unknown.nxs'], 'scheme': 'angle-dispersive'}}, 'reduction': {'software': 'ess', 'timestamp': datetime.datetime(2022, 2, 1, 11, 56, 13, tzinfo=datetime.timezone(datetime.timedelta(seconds=3600))), 'corrections': ['simulated']}, 'columns': [{'name': 'Qz', 'unit': '1/angstrom', 'dimension': 'WW transfer'}, {'name': 'R', 'dimension': 'reflectivity'}, {'name': 'sR', 'dimension': 'error-reflectivity'}, {'name': 'sQz', 'unit': '1/angstrom', 'dimension': 'resolution-WW transfer'}]}
      Values:
      array([1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 9.99994575e-01, 9.99954387e-01, 9.99503524e-01, 9.87144413e-01, 5.37099919e-02, 2.27278764e-01, 8.02727372e-02, 1.12659001e-01, 2.59620533e-03, 6.80664252e-02, 2.66331611e-02, 6.81237916e-03, 3.91495753e-02, 1.39036538e-02, 3.77502925e-03, 2.61133525e-02, 1.31791831e-02, 8.99005301e-04, 1.89895100e-02, 1.62084753e-02, 1.54478279e-04, 1.37222155e-02, 2.21939986e-02, 3.37720126e-03, 8.92594255e-03, 3.50555648e-02, 1.89440013e-02, 4.27980709e-03, 1.02748994e-01, 2.36461953e-01, 2.81613618e-01, 2.19323646e-01, 9.69263248e-02, 1.28652574e-02, 1.00516338e-03, 6.55596083e-03, 3.27536554e-03, 6.34617044e-05, 7.38761442e-04, 9.77885216e-04, 1.98659644e-04, 4.33440619e-05, 2.27614961e-04, 1.25986332e-04, 1.01314189e-05, 5.47938938e-05, 6.61478351e-05, 1.14537238e-05, 3.65400205e-05, 9.96800473e-05, 4.58575338e-05, 1.11142493e-05, 1.58776339e-04, 1.96065050e-04, 1.73441991e-05, 1.40166817e-04, 4.83227288e-04, 2.68753043e-04, 2.55777713e-05, 8.70694940e-04, 1.41560462e-03, 2.20213658e-04, 1.46424635e-03, 1.06491607e-02, 2.32928980e-02, 2.74792460e-02, 1.89955476e-02, 6.57147331e-03, 3.96375871e-04, 4.70973905e-04, 1.09674544e-03, 4.04123327e-04, 2.53783607e-06, 2.57577800e-04, 2.68741117e-04, 3.51170030e-05, 3.74355209e-05, 1.31647855e-04, 6.54312069e-05, 2.37577066e-07, 4.29685970e-05, 5.50468134e-05, 1.01018099e-05, 6.01045794e-06, 2.80123777e-05, 1.67588370e-05, 3.84213754e-07, 7.43889671e-06, 1.14412808e-05, 3.19009491e-06, 3.04137591e-07, 2.90040284e-06, 2.55681010e-06, 5.67658007e-07, 9.17604020e-07, 4.07259100e-06, 1.92940032e-06, 9.47215246e-06, 1.08504939e-04, 3.43352225e-04, 5.52119744e-04, 4.99889625e-04, 2.26145593e-04, 2.20134361e-05, 1.71732404e-05, 5.79176552e-05, 2.86644061e-05, 4.02665483e-07, 2.06121168e-05, 2.75629542e-05, 5.11548482e-06, 4.82292945e-06, 2.09822125e-05, 1.27365748e-05, 3.18256727e-07, 1.18765747e-05, 1.77856487e-05, 3.68380187e-06, 3.71913179e-06, 1.78490779e-05, 1.18997057e-05, 2.26938050e-07, 1.26643811e-05, 2.12575898e-05, 5.02130733e-06, 4.61640208e-06, 2.75978141e-05, 2.19163491e-05, 2.33472245e-07, 2.73046544e-05, 6.12993510e-05, 2.17975695e-05, 1.74797612e-05, 2.36019304e-04, 5.84410638e-04, 7.24544529e-04, 5.20539888e-04, 2.01025347e-04, 2.43922198e-05, 2.39472572e-06, 1.45301658e-05, 7.90388470e-06, 4.15405847e-07, 1.27983371e-06, 1.98946222e-06, 5.46663211e-07, 1.99323053e-07, 6.94008205e-07, 4.20997128e-07, 4.28431324e-08, 7.93188713e-07, 1.34334753e-06, 3.28092423e-07, 4.01721242e-07, 2.64583628e-06, 2.40147956e-06, 4.30754229e-08, 2.58141305e-06, 6.41119548e-06, 2.61679031e-06, 6.85366659e-07, 1.02321060e-05, 1.26320648e-05, 1.08712542e-06, 1.00515417e-05, 3.86803239e-05, 2.58157335e-05, 2.28284077e-06, 1.43204576e-04, 4.98867604e-04, 7.96628454e-04, 7.33280438e-04, 3.80245724e-04, 7.88373792e-05, 1.73850823e-07, 2.76931649e-05, 2.62744580e-05, 3.58118387e-06, 2.43984139e-06, 9.52212644e-06, 5.05231740e-06, 2.60738190e-08, 2.40380913e-06, 3.51304709e-06, 8.28092271e-07, 1.89016535e-07, 1.45039803e-06, 1.05733223e-06, 5.60075550e-08, 2.71612209e-07, 5.87701254e-07, 2.27889322e-07, 1.29189567e-08, 1.90619567e-07, 2.10717874e-07, 4.48885980e-08, 2.27021529e-07, 5.58553846e-07, 2.13649665e-07, 2.82894876e-07, 2.40266335e-06, 3.05221862e-06, 8.57425655e-08, 9.31356806e-06, 5.20595061e-05, 1.12018874e-04, 1.34163647e-04, 9.24268178e-05, 2.97058163e-05, 7.81411382e-07, 5.12202168e-06, 8.85138717e-06, 2.63657391e-06, 2.42815574e-07, 3.36971646e-06, 2.99447238e-06, 2.35232071e-07, 9.21981624e-07, 2.36271020e-06, 9.77969683e-07, 6.87906082e-08, 1.35586561e-06, 1.46697862e-06, 1.67516156e-07, 4.81061118e-07, 1.45945832e-06, 7.05622939e-07, 4.51760360e-08, 1.04547812e-06, 1.28854518e-06, 1.78153762e-07, 4.61475882e-07, 1.65899869e-06, 9.45468420e-07, 3.92402666e-08, 1.69555424e-06, 2.70414330e-06, 5.41610295e-07, 1.42991266e-06, 1.06657382e-05, 2.09155638e-05, 2.11803616e-05, 1.21977399e-05, 3.54862181e-06, 2.59208779e-07, 7.78326663e-08, 1.47488421e-07, 3.58393384e-08, 1.50346808e-08, 5.27161781e-08, 4.80283988e-08, 2.48918247e-09, 5.96277459e-08, 1.82283238e-07, 1.05600759e-07, 6.39473958e-09, 2.33842582e-07, 3.63680028e-07, 7.46714984e-08, 1.13426812e-07, 6.03065596e-07, 4.65025814e-07, 3.14142325e-09, 5.66266848e-07, 1.16530624e-06, 3.71448407e-07, 1.97152956e-07, 1.84995709e-06, 1.92022133e-06, 7.77610163e-08, 1.95335731e-06, 6.09067733e-06, 3.31503396e-06, 7.96728181e-07, 2.41788302e-05, 7.55361584e-05, 1.12652930e-04, 9.75314560e-05, 4.71330161e-05, 8.59407046e-06, 1.17965237e-07, 3.70535007e-06, 3.06693835e-06, 3.30219575e-07, 3.47899242e-07, 1.09319441e-06, 5.15404533e-07, 1.75848672e-09, 2.58246460e-07, 3.36916609e-07, 7.25633027e-08, 2.10381251e-08, 1.24271404e-07, 8.39925336e-08, 7.68709516e-09, 3.71038152e-08, 6.29536668e-08, 1.81241630e-08, 2.77981688e-08, 1.14279564e-07, 8.47770004e-08, 5.81680916e-09, 2.11099783e-07, 4.16520605e-07, 1.16565379e-07, 1.73565650e-07, 1.34315441e-06, 1.51817871e-06, 2.23730170e-08, 4.24521369e-06, 2.18649199e-05, 4.41791790e-05, 5.01216782e-05, 3.28949719e-05, 1.01047807e-05, 2.45796950e-07, 1.63638203e-06, 2.73979882e-06, 8.02243316e-07, 5.93053598e-08, 9.25615287e-07, 8.24458674e-07, 7.02499722e-08, 2.08454785e-07, 5.66535791e-07, 2.47623619e-07, 7.46383398e-09, 2.65158539e-07, 3.07042543e-07, 4.45912876e-08, 6.62210953e-08, 2.37750684e-07, 1.29791323e-07, 3.92564915e-09, 1.20507385e-07, 1.64965798e-07, 3.29210555e-08, 3.21713766e-08, 1.36014210e-07, 8.54210989e-08, 4.33766641e-09, 7.57097221e-08, 1.14671963e-07, 2.71476474e-08, 2.36662037e-08, 1.10255329e-07, 8.22796486e-08, 6.09466544e-09, 4.67287881e-08, 8.41712226e-08, 2.22586537e-08, 1.93638172e-08, 9.16388052e-08, 6.55517754e-08, 3.76256334e-09, 6.31751154e-08, 1.08121837e-07, 2.89999592e-08, 2.07552762e-08, 1.19219687e-07, 9.37314235e-08, 3.56124877e-09, 8.31249622e-08, 1.65270291e-07, 5.24085540e-08, 2.26558728e-08, 1.90492736e-07, 1.78219669e-07, 8.22567810e-09, 1.32845360e-07, 3.36415820e-07, 1.40788083e-07, 2.63554968e-08, 4.30534750e-07, 5.28191035e-07, 5.21337282e-08, 3.49973333e-07, 1.36130817e-06, 9.17998762e-07, 5.16866840e-08, 4.21796253e-06, 1.45518228e-05, 2.27146265e-05, 2.04257062e-05, 1.04321971e-05, 2.21961340e-06, 9.99065951e-10, 5.82211179e-07, 5.82062276e-07, 9.50871894e-08, 3.23512397e-08, 1.55320777e-07, 8.97346175e-08, 3.67177449e-09])

      Variances (σ²):
      array([1.02850415e-12, 1.54339896e-10, 1.33294115e-09, 5.36885402e-09, 1.50583201e-08, 3.41617983e-08, 6.74032295e-08, 1.20462700e-07, 1.99825504e-07, 3.05659337e-07, 1.35583901e-09, 3.50510812e-08, 6.12049930e-09, 1.64404840e-08, 1.16437071e-11, 1.04691540e-08, 2.06149936e-09, 1.70905694e-10, 7.05808401e-09, 1.10008364e-09, 9.91566083e-11, 5.74566274e-09, 1.75682389e-09, 9.73523582e-12, 5.13505031e-09, 4.39315359e-09, 4.65700856e-13, 4.26389460e-09, 1.28735831e-08, 3.42339792e-10, 2.73373152e-09, 4.79937881e-08, 1.58882144e-08, 9.15766954e-10, 5.93934713e-07, 3.52764123e-06, 5.59320408e-06, 3.78097783e-06, 8.20642783e-07, 1.60238379e-08, 1.08129046e-10, 5.07243547e-09, 1.39291396e-09, 5.74014035e-13, 8.52077782e-11, 1.63206276e-10, 7.34898981e-12, 3.80984851e-13, 1.14213347e-11, 3.79740672e-12, 2.66068689e-14, 8.41872807e-13, 1.32520988e-12, 4.28533945e-14, 4.69741008e-13, 3.75992620e-12, 8.54791228e-13, 5.38677104e-14, 1.17799119e-11, 1.92248790e-11, 1.60831853e-13, 1.12170342e-11, 1.42217713e-10, 4.68785863e-11, 4.52040975e-13, 5.57121833e-10, 1.56480992e-09, 4.02005110e-11, 1.88518650e-09, 1.05674051e-07, 5.35347125e-07, 7.88312301e-07, 3.98246301e-07, 5.03502439e-08, 1.93373059e-10, 2.87982975e-10, 1.64615512e-09, 2.35437269e-10, 9.77400966e-15, 1.05920025e-10, 1.21218648e-10, 2.17473971e-12, 2.59507029e-12, 3.36792189e-11, 8.72584652e-12, 1.20588555e-16, 4.13257297e-12, 7.10184053e-12, 2.50302873e-13, 9.26874951e-14, 2.10487900e-12, 7.87269631e-13, 4.32197381e-16, 1.69141599e-13, 4.17523138e-13, 3.38564465e-14, 3.20838414e-16, 3.04079977e-14, 2.46155754e-14, 1.26342365e-15, 3.43615416e-15, 7.04235326e-14, 1.64386482e-14, 4.11906137e-13, 5.61716124e-11, 5.84325943e-10, 1.56907297e-09, 1.33528048e-09, 2.83594329e-10, 2.78770052e-12, 1.75945804e-12, 2.07471178e-11, 5.26675508e-12, 1.07678722e-15, 2.92236878e-12, 5.41074824e-12, 1.92914509e-13, 1.77447691e-13, 3.47441964e-12, 1.32401294e-12, 8.54727050e-16, 1.23032582e-12, 2.85118053e-12, 1.26359938e-13, 1.33020164e-13, 3.16352371e-12, 1.45146527e-12, 5.44797066e-16, 1.75051938e-12, 5.08745386e-12, 2.92735724e-13, 2.55103762e-13, 9.39779183e-12, 6.10774060e-12, 7.14142283e-16, 1.00614706e-11, 5.22250573e-11, 6.79937493e-12, 4.50108761e-12, 8.44587081e-10, 5.32842786e-09, 8.42593977e-09, 4.47336796e-09, 6.86089775e-10, 1.03860440e-11, 1.02906764e-13, 3.89382263e-12, 1.18396209e-12, 3.36003194e-15, 3.27618160e-14, 8.13049697e-14, 6.30366890e-15, 8.60401069e-16, 1.07071144e-14, 4.04375657e-15, 4.29734057e-17, 1.51122467e-14, 4.44652090e-14, 2.72040409e-15, 4.18233477e-15, 1.86017975e-13, 1.57101018e-13, 5.18090734e-17, 1.90687114e-13, 1.20525491e-12, 2.05716411e-13, 1.44558534e-14, 3.30013553e-12, 5.15100901e-12, 3.90646141e-14, 3.41908304e-12, 5.18304163e-11, 2.36305848e-11, 1.89103397e-13, 7.61459203e-10, 9.45433667e-09, 2.46628469e-08, 2.13740608e-08, 5.87808082e-09, 2.58390568e-10, 1.28474583e-15, 3.33278205e-11, 3.06672231e-11, 5.82308472e-13, 2.76225858e-13, 4.29931420e-12, 1.23666520e-12, 3.36488124e-17, 2.92146359e-13, 6.37322948e-13, 3.61652707e-14, 1.92410403e-15, 1.15677955e-13, 6.27623845e-14, 1.79772616e-16, 4.31555553e-15, 2.06211872e-14, 3.16421230e-15, 1.03763634e-17, 2.30490858e-15, 2.87346717e-15, 1.33020026e-16, 3.47038484e-15, 2.14254431e-14, 3.19682087e-15, 5.71526769e-15, 4.20342788e-13, 6.91575437e-13, 5.56354176e-16, 6.69114871e-12, 2.13078206e-10, 1.00543160e-09, 1.46971155e-09, 7.10742264e-10, 7.48022549e-11, 5.27313538e-14, 2.30798275e-12, 7.02062156e-12, 6.34452565e-13, 5.48027382e-15, 1.07480507e-12, 8.64254457e-13, 5.43020992e-15, 8.49288967e-14, 5.67785671e-13, 9.90221463e-14, 4.98681970e-16, 1.97173504e-13, 2.34897884e-13, 3.11693599e-15, 2.61556132e-14, 2.44942948e-13, 5.82521036e-14, 2.42904167e-16, 1.32333316e-13, 2.04469027e-13, 3.97535369e-15, 2.71275289e-14, 3.56533131e-13, 1.17751610e-13, 2.06239266e-16, 3.91503274e-13, 1.01238607e-12, 4.12862765e-14, 2.92527505e-13, 1.65430734e-11, 6.46593464e-11, 6.73888524e-11, 2.27133297e-11, 1.95350297e-12, 1.05910414e-14, 9.70241728e-16, 3.53965839e-15, 2.12337907e-16, 3.79604171e-17, 4.74065666e-16, 3.99694657e-16, 1.09043705e-18, 6.35495782e-16, 6.03131585e-15, 2.05555710e-15, 7.65406977e-18, 1.03924909e-14, 2.55218338e-14, 1.09234079e-15, 2.55876521e-15, 7.34266932e-14, 4.43180211e-14, 2.05284516e-18, 6.77015271e-14, 2.90981433e-13, 3.00045619e-14, 8.57784952e-15, 7.66396038e-13, 8.37852089e-13, 1.39412068e-15, 8.92542085e-13, 8.80364541e-12, 2.64576189e-12, 1.55030142e-13, 1.44832181e-10, 1.43377459e-09, 3.23452642e-09, 2.45894010e-09, 5.82398375e-10, 1.96361872e-11, 3.75176590e-15, 3.75347236e-12, 2.60741919e-12, 3.06486614e-14, 3.44903179e-14, 3.45261980e-13, 7.78025188e-14, 9.18117501e-19, 2.00720401e-14, 3.46298184e-14, 1.62817894e-15, 1.38715500e-16, 4.90542384e-15, 2.27101060e-15, 1.92773163e-17, 4.55118174e-16, 1.32762352e-15, 1.11500189e-16, 2.65766334e-16, 4.55086415e-15, 2.53736704e-15, 1.21017669e-17, 1.61468667e-14, 6.36796856e-14, 5.05200951e-15, 1.13457072e-14, 6.88203634e-13, 8.90541405e-13, 1.95876779e-16, 7.14234600e-12, 1.91879239e-10, 7.93305640e-10, 1.03398026e-09, 4.50981472e-10, 4.30898523e-11, 2.58153974e-14, 1.15846524e-12, 3.28792558e-12, 2.85398204e-13, 1.57893687e-15, 3.89367173e-13, 3.12709566e-13, 2.29818269e-15, 2.04827701e-14, 1.53135661e-13, 2.96105521e-14, 2.72277157e-17, 3.47782435e-14, 4.71940234e-14, 1.00732091e-15, 2.24813814e-15, 2.93238442e-14, 8.84301692e-15, 8.18556561e-18, 7.80466988e-15, 1.47979481e-14, 5.96255925e-16, 5.76077852e-16, 1.04172331e-14, 4.15663008e-15, 1.08426647e-17, 3.34137481e-15, 7.75389868e-15, 4.39581516e-16, 3.37899353e-16, 7.41771780e-15, 4.17813869e-15, 2.31851862e-17, 1.37841121e-15, 4.52295313e-15, 3.19862904e-16, 2.44796729e-16, 5.54404111e-15, 2.86857965e-15, 9.55614102e-18, 2.72402138e-15, 8.06743441e-15, 5.86786767e-16, 3.03882941e-16, 1.01366833e-14, 6.33443593e-15, 9.24414561e-18, 5.09139521e-15, 2.03452195e-14, 2.06806078e-15, 3.90655549e-16, 2.79158001e-14, 2.46974881e-14, 5.31766210e-17, 1.40182395e-14, 9.08582851e-14, 1.60820807e-14, 5.69559851e-16, 1.53598764e-13, 2.33623004e-13, 2.29996559e-15, 1.04735022e-13, 1.60125783e-12, 7.35778426e-13, 2.35680098e-15, 1.58584959e-11, 1.90708776e-10, 4.69477529e-10, 3.83542904e-10, 1.01077863e-10, 4.62266509e-12, 9.46123815e-19, 3.24587157e-13, 3.27724190e-13, 8.83490247e-15, 1.03303872e-15, 2.40524753e-14, 8.10915489e-15, 1.37136003e-17])
    • R_0_model
      (Qz_0)
      float64
      𝟙
      1.000, 1.000, ..., 9.474e-08, 4.953e-09
        • model
          ()
          PyObject
          {'@module': 'EasyReflectometry.experiment.model', '@class': 'Model', '@version': '0.0.2', 'structure': {'@module': 'EasyReflectometry.sample.structure', '@class': 'Structure', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.items.multilayer', '@class': 'MultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '160153752925973828969642004636066783403', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '44123737957535249567684494854767251259', 'enabled': True}, 'name': 'Vacuum', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '215726482803729655155423936606500646358'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '144375282285226909454331761277439947637', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '311464255168503577828183481887293876831', 'enabled': True}, 'name': 'Vacuum Superphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '100875469957922999961453430861073450734'}], '@id': '290312676523684462597166090802078937596'}, 'name': 'Vacuum Superphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '285368571034518623402576415566374589570'}, {'@module': 'EasyReflectometry.sample.items.repeating_multilayer', '@class': 'RepeatingMultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': -1.9493, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '29074807520199847472403160871829824531', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '128300669849274035633264655401598792614', 'enabled': True}, 'name': 'Ti', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '237741101656182063423978997529137762956'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 29.98794608575187, 'error': 0.0, 'min': 10, 'max': 60, 'fixed': False, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '103304782659205807360296569429842153379', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '10352803822447268342415456087317690299', 'enabled': True}, 'name': 'Ti Layer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '108033207165128692207979633924455128838'}, {'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 9.4245, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '280520363368509150861450683272210869527', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '265717623684659193840876916784561803576', 'enabled': True}, 'name': 'Ni', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '283899728229203066882943439481289207181'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 70.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '95408326072990471673697861056485883900', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '300430640550442197355829278844956100475', 'enabled': True}, 'name': 'Ni Layer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '188683388823096778573687300377116120856'}], '@id': '180431714249230398560719162926070120859'}, 'repetitions': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'repetitions', 'value': 10.0, 'error': 0.0, 'min': 1, 'max': 9999, 'fixed': True, 'description': 'Number of repetitions of the given series of layers', 'units': 'dimensionless', '@id': '317987754328427405110809091113834868950', 'enabled': True}, 'name': 'NiTi Multilayer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '333537680823576536039946410070838683341'}, {'@module': 'EasyReflectometry.sample.items.multilayer', '@class': 'MultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 2.0704, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '79475671840585960785342835405554037150', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '148341495759275998030439066803659819508', 'enabled': True}, 'name': 'Si', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '270552265356971900911850872424139496223'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '282906095018177690198530330202100401256', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '34149120241101418026109533467613560215', 'enabled': True}, 'name': 'Si Subphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '56789193626982987970171569812340628866'}], '@id': '45842171146451275101509446462149861860'}, 'name': 'Si Subphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '5872227937396073020094814283980663143'}], '@id': '231132422746656008751238540520033054881'}, 'scale': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'scale', 'value': 1.0, 'error': 0.0, 'min': 0, 'max': inf, 'fixed': True, 'description': 'Scaling of the reflectomety profile', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '143633423516373495611112847632135040288', 'enabled': True}, 'background': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'background', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'Linear background to include in reflectometry data', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '238592870077372925913702898352363781713', 'enabled': True}, 'resolution': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'resolution', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': 100.0, 'fixed': True, 'description': 'Percentage constant dQ/Q resolution smearing.', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '191992117457866999545096068198103947142', 'enabled': True}, 'name': 'Multilayer Model', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '251940253726541529514505184268163324'}
          Values:
          {'@module': 'EasyReflectometry.experiment.model', '@class': 'Model', '@version': '0.0.2', 'structure': {'@module': 'EasyReflectometry.sample.structure', '@class': 'Structure', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.items.multilayer', '@class': 'MultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '160153752925973828969642004636066783403', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '44123737957535249567684494854767251259', 'enabled': True}, 'name': 'Vacuum', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '215726482803729655155423936606500646358'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '144375282285226909454331761277439947637', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '311464255168503577828183481887293876831', 'enabled': True}, 'name': 'Vacuum Superphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '100875469957922999961453430861073450734'}], '@id': '290312676523684462597166090802078937596'}, 'name': 'Vacuum Superphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '285368571034518623402576415566374589570'}, {'@module': 'EasyReflectometry.sample.items.repeating_multilayer', '@class': 'RepeatingMultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': -1.9493, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '29074807520199847472403160871829824531', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '128300669849274035633264655401598792614', 'enabled': True}, 'name': 'Ti', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '237741101656182063423978997529137762956'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 29.98794608575187, 'error': 0.0, 'min': 10, 'max': 60, 'fixed': False, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '103304782659205807360296569429842153379', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '10352803822447268342415456087317690299', 'enabled': True}, 'name': 'Ti Layer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '108033207165128692207979633924455128838'}, {'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 9.4245, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '280520363368509150861450683272210869527', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '265717623684659193840876916784561803576', 'enabled': True}, 'name': 'Ni', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '283899728229203066882943439481289207181'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 70.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '95408326072990471673697861056485883900', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '300430640550442197355829278844956100475', 'enabled': True}, 'name': 'Ni Layer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '188683388823096778573687300377116120856'}], '@id': '180431714249230398560719162926070120859'}, 'repetitions': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'repetitions', 'value': 10.0, 'error': 0.0, 'min': 1, 'max': 9999, 'fixed': True, 'description': 'Number of repetitions of the given series of layers', 'units': 'dimensionless', '@id': '317987754328427405110809091113834868950', 'enabled': True}, 'name': 'NiTi Multilayer', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '333537680823576536039946410070838683341'}, {'@module': 'EasyReflectometry.sample.items.multilayer', '@class': 'MultiLayer', '@version': '0.0.2', 'layers': {'@module': 'EasyReflectometry.sample.layers', '@class': 'Layers', '@version': '0.0.2', 'data': [{'@module': 'EasyReflectometry.sample.layer', '@class': 'Layer', '@version': '0.0.2', 'material': {'@module': 'EasyReflectometry.sample.material', '@class': 'Material', '@version': '0.0.2', 'sld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'sld', 'value': 2.0704, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The real scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '79475671840585960785342835405554037150', 'enabled': True}, 'isld': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'isld', 'value': 0.0, 'error': 0.0, 'min': -inf, 'max': inf, 'fixed': True, 'description': 'The imaginary scattering length density for a material in e-6 per squared angstrom.', 'url': 'https://www.ncnr.nist.gov/resources/activation/', 'units': '1 / angstrom ** 2', '@id': '148341495759275998030439066803659819508', 'enabled': True}, 'name': 'Si', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '270552265356971900911850872424139496223'}, 'thickness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'thickness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The thickness of the layer in angstroms', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'angstrom', '@id': '282906095018177690198530330202100401256', 'enabled': True}, 'roughness': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'roughness', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'The interfacial roughness, Nevot-Croce, for the layer in angstroms.', 'url': 'https://doi.org/10.1051/rphysap:01980001503076100', 'units': 'angstrom', '@id': '34149120241101418026109533467613560215', 'enabled': True}, 'name': 'Si Subphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '56789193626982987970171569812340628866'}], '@id': '45842171146451275101509446462149861860'}, 'name': 'Si Subphase', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '5872227937396073020094814283980663143'}], '@id': '231132422746656008751238540520033054881'}, 'scale': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'scale', 'value': 1.0, 'error': 0.0, 'min': 0, 'max': inf, 'fixed': True, 'description': 'Scaling of the reflectomety profile', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '143633423516373495611112847632135040288', 'enabled': True}, 'background': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'background', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': inf, 'fixed': True, 'description': 'Linear background to include in reflectometry data', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '238592870077372925913702898352363781713', 'enabled': True}, 'resolution': {'@module': 'easyCore.Objects.Variable', '@class': 'Parameter', '@version': '0.2.2', 'name': 'resolution', 'value': 0.0, 'error': 0.0, 'min': 0.0, 'max': 100.0, 'fixed': True, 'description': 'Percentage constant dQ/Q resolution smearing.', 'url': 'https://github.com/reflectivity/edu_outreach/blob/master/refl_maths/paper.tex', 'units': 'dimensionless', '@id': '191992117457866999545096068198103947142', 'enabled': True}, 'name': 'Multilayer Model', 'interface': <EasyReflectometry.interface.InterfaceFactory object at 0x7f249105f8b0>, '@id': '251940253726541529514505184268163324'}
      Values:
      array([1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 9.99994571e-01, 9.99954364e-01, 9.99503263e-01, 9.87126773e-01, 5.45362185e-02, 2.27834399e-01, 7.99466847e-02, 1.12857727e-01, 2.57586203e-03, 6.79844322e-02, 2.67597519e-02, 6.76101121e-03, 3.91046353e-02, 1.39856599e-02, 3.74075185e-03, 2.60677345e-02, 1.32399144e-02, 8.84933602e-04, 1.89328304e-02, 1.62542114e-02, 1.63483557e-04, 1.36454114e-02, 2.22076112e-02, 3.43723973e-03, 8.83082356e-03, 3.49767074e-02, 1.90667607e-02, 4.18339209e-03, 1.02088263e-01, 2.35853032e-01, 2.81443954e-01, 2.19607408e-01, 9.73799382e-02, 1.30481241e-02, 9.75879047e-04, 6.54227616e-03, 3.29736249e-03, 6.81842379e-05, 7.31914143e-04, 9.79257312e-04, 2.01915508e-04, 4.23290920e-05, 2.26797587e-04, 1.26808059e-04, 1.02695481e-05, 5.43826910e-05, 6.63446009e-05, 1.16439128e-05, 3.60885533e-05, 9.96187730e-05, 4.65176902e-05, 1.07295902e-05, 1.57679196e-04, 1.96952222e-04, 1.83120070e-05, 1.37683222e-04, 4.82111962e-04, 2.72425637e-04, 2.37893264e-05, 8.61780648e-04, 1.41917936e-03, 2.29997848e-04, 1.42629880e-03, 1.05440854e-02, 2.32022748e-02, 2.74947482e-02, 1.91005169e-02, 6.66304095e-03, 4.17742447e-04, 4.60350271e-04, 1.09772531e-03, 4.11629184e-04, 2.07095935e-06, 2.55072386e-04, 2.70568446e-04, 3.66454696e-05, 3.62654974e-05, 1.31311705e-04, 6.64913603e-05, 2.75770069e-07, 4.23589551e-05, 5.52911377e-05, 1.04876962e-05, 5.76201432e-06, 2.78587601e-05, 1.69864916e-05, 4.24883398e-07, 7.28804087e-06, 1.14552495e-05, 3.27525131e-06, 2.81619853e-07, 2.86030310e-06, 2.56937716e-06, 5.85143228e-07, 9.09141840e-07, 4.09363018e-06, 2.00737675e-06, 9.12335357e-06, 1.07057816e-04, 3.41833171e-04, 5.53333600e-04, 5.04526253e-04, 2.30748118e-04, 2.34065224e-05, 1.65222652e-05, 5.79532501e-05, 2.93758951e-05, 4.18293887e-07, 2.02851555e-05, 2.77967877e-05, 5.39215887e-06, 4.60435394e-06, 2.08913196e-05, 1.30136687e-05, 3.22414246e-07, 1.16403639e-05, 1.78948700e-05, 3.87994526e-06, 3.52932381e-06, 1.77168996e-05, 1.21378282e-05, 2.42786534e-07, 1.23582620e-05, 2.13232598e-05, 5.28551493e-06, 4.33677880e-06, 2.72829876e-05, 2.22773446e-05, 2.99868099e-07, 2.64496454e-05, 6.11467521e-05, 2.27194500e-05, 1.60158166e-05, 2.29852282e-04, 5.77493538e-04, 7.22758125e-04, 5.24054868e-04, 2.05011543e-04, 2.57740182e-05, 2.16380996e-06, 1.43999938e-05, 8.05615264e-06, 4.59357314e-07, 1.23387247e-06, 1.99041353e-06, 5.64471952e-07, 1.92136751e-07, 6.88394921e-07, 4.31175397e-07, 4.02602207e-08, 7.74485701e-07, 1.35205822e-06, 3.51263588e-07, 3.72864521e-07, 2.61353318e-06, 2.45056342e-06, 6.02475872e-08, 2.48378254e-06, 6.40709234e-06, 2.73983030e-06, 5.97633714e-07, 1.00238918e-05, 1.27897123e-05, 1.25530937e-06, 9.51965850e-06, 3.83100961e-05, 2.66209390e-05, 1.79737624e-06, 1.37674611e-04, 4.90403834e-04, 7.93035396e-04, 7.38220397e-04, 3.88264853e-04, 8.29717045e-05, 8.15748303e-08, 2.71433568e-05, 2.67214009e-05, 3.90349476e-06, 2.25062739e-06, 9.46562832e-06, 5.21887354e-06, 4.61929191e-08, 2.32040728e-06, 3.53900570e-06, 8.83586392e-07, 1.65941502e-07, 1.42811313e-06, 1.08154652e-06, 6.64839686e-08, 2.57083032e-07, 5.86786184e-07, 2.37575807e-07, 1.21267695e-08, 1.86395533e-07, 2.14187029e-07, 4.65452771e-08, 2.19717566e-07, 5.61814699e-07, 2.28949682e-07, 2.58337035e-07, 2.35753684e-06, 3.11592344e-06, 1.23280437e-07, 8.76918362e-06, 5.08174630e-05, 1.11174477e-04, 1.34938465e-04, 9.43817512e-05, 3.11540938e-05, 9.88706378e-07, 4.90080141e-06, 8.94387690e-06, 2.81414248e-06, 1.97813429e-07, 3.30852353e-06, 3.07286322e-06, 2.75987969e-07, 8.65866221e-07, 2.36265995e-06, 1.03273835e-06, 5.63352212e-08, 1.31927144e-06, 1.49529346e-06, 1.91613251e-07, 4.46950770e-07, 1.45031635e-06, 7.40514221e-07, 3.74669427e-08, 1.00991979e-06, 1.30602060e-06, 2.01629939e-07, 4.23552825e-07, 1.63694381e-06, 9.84813993e-07, 3.05050088e-08, 1.61900188e-06, 2.70887022e-06, 6.03747822e-07, 1.27445494e-06, 1.02192530e-05, 2.05042788e-05, 2.10942481e-05, 1.23430650e-05, 3.67640828e-06, 2.88941954e-07, 7.06949302e-08, 1.45641713e-07, 3.69076866e-08, 1.41585057e-08, 5.20883715e-08, 4.98972055e-08, 3.33402193e-09, 5.57800119e-08, 1.81751595e-07, 1.11905968e-07, 4.81865116e-09, 2.24790828e-07, 3.68776083e-07, 8.43873485e-08, 1.01130194e-07, 5.92867088e-07, 4.83474499e-07, 5.95469586e-09, 5.35040012e-07, 1.16853637e-06, 4.06003055e-07, 1.66390328e-07, 1.79688974e-06, 1.96943035e-06, 1.09822783e-07, 1.80681644e-06, 6.02028113e-06, 3.51892260e-06, 6.01508481e-07, 2.27757232e-05, 7.35957910e-05, 1.11957904e-04, 9.86872530e-05, 4.88008156e-05, 9.36826642e-06, 6.57249339e-08, 3.60636139e-06, 3.15862832e-06, 3.84960077e-07, 3.11100835e-07, 1.08559511e-06, 5.43882575e-07, 3.69072307e-09, 2.45255842e-07, 3.41224623e-07, 8.02421723e-08, 1.77979800e-08, 1.21571689e-07, 8.69980869e-08, 8.62560857e-09, 3.51820252e-08, 6.35479380e-08, 1.96756543e-08, 2.55549605e-08, 1.12911822e-07, 8.93880374e-08, 4.97451242e-09, 2.00322434e-07, 4.20311954e-07, 1.32011821e-07, 1.49143649e-07, 1.30332955e-06, 1.56624662e-06, 4.51248414e-08, 3.86850102e-06, 2.10593022e-05, 4.36396765e-05, 5.05134767e-05, 3.39107951e-05, 1.08363163e-05, 3.47876420e-07, 1.52957234e-06, 2.77860025e-06, 8.81678637e-07, 4.18337487e-08, 8.98748832e-07, 8.54460440e-07, 8.75228022e-08, 1.88298106e-07, 5.64977874e-07, 2.66464548e-07, 5.06819013e-09, 2.53344884e-07, 3.14316285e-07, 5.25292499e-08, 5.82390148e-08, 2.34350805e-07, 1.37679731e-07, 3.83142533e-09, 1.13450483e-07, 1.66964189e-07, 3.75332050e-08, 2.77397895e-08, 1.32233879e-07, 8.92534989e-08, 4.66258249e-09, 6.98537850e-08, 1.13631765e-07, 2.99968800e-08, 1.97988217e-08, 1.01313100e-07, 7.68509240e-08, 5.58027308e-09, 5.05400428e-08, 9.15356000e-08, 2.62556785e-08, 1.71761891e-08, 9.18868784e-08, 7.05712743e-08, 4.24252676e-09, 5.97204573e-08, 1.10562643e-07, 3.31922397e-08, 1.76003793e-08, 1.16786596e-07, 9.89862220e-08, 4.73024470e-09, 7.70099754e-08, 1.66601089e-07, 5.89510564e-08, 1.80921493e-08, 1.84024866e-07, 1.85608537e-07, 1.18759903e-08, 1.20388540e-07, 3.34779990e-07, 1.54756559e-07, 1.85945148e-08, 4.09158837e-07, 5.41159582e-07, 6.82171781e-08, 3.06565265e-07, 1.32802889e-06, 9.76585334e-07, 2.38874017e-08, 3.84093381e-06, 1.39692348e-05, 2.24328871e-05, 2.06713531e-05, 1.08755743e-05, 2.45569089e-06, 4.58615675e-09, 5.51740511e-07, 5.98834840e-07, 1.10624070e-07, 2.59498571e-08, 1.51857908e-07, 9.47419927e-08, 4.95340539e-09])
    • SLD_0
      (z_0)
      float64
      1/Å^2
      8.882e-22, 8.882e-22, ..., 2.070e-06, 2.070e-06
      Values:
      array([8.8817842e-22, 8.8817842e-22, 8.8817842e-22, ..., 2.0704000e-06, 2.0704000e-06, 2.0704000e-06])

We can visualise the analysed model and SLD profile with the plot function.

[12]:
plot(analysed)
[12]:

The value of the titanium layer thickness that gives this best fit can be found from the relavant object. Note that the uncertainty of 0 is due to the use of the lmfit differential evolution algorithm, which does not include uncertainty analysis.

[13]:
ti_layer.thickness.value
[13]:
(29.98794608575187 ± 0) angstrom

This result of a thickness of 30 Å is the same as that which is used to produce the data.