gratinglab 0.3.6__tar.gz → 0.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gratinglab-0.3.6/src/gratinglab.egg-info → gratinglab-0.3.8}/PKG-INFO +78 -61
- {gratinglab-0.3.6 → gratinglab-0.3.8}/README.md +77 -60
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/conventions.md +11 -15
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/cmethod.md +1 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/integral.md +18 -23
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/metrology.md +9 -15
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/rcwa.md +8 -23
- {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/scalar.md +9 -15
- {gratinglab-0.3.6 → gratinglab-0.3.8}/pyproject.toml +9 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/__init__.py +12 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/app.py +2 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/cmethod_options.py +2 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/comparison.py +3 -3
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/diagram3d.py +2 -4
- gratinglab-0.3.8/src/gratinglab/gui/failures.py +39 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/launcher.py +3 -3
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/provenance.py +79 -7
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/cmethod_tab.py +13 -21
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/compare_tab.py +2 -3
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/geometry_panel.py +9 -7
- gratinglab-0.3.8/src/gratinglab/gui/qt/help_menu.py +93 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/integral_tab.py +13 -21
- gratinglab-0.3.8/src/gratinglab/gui/qt/launcher.py +342 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/main_window.py +32 -34
- gratinglab-0.3.8/src/gratinglab/gui/qt/provenance_panel.py +141 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/rcwa_tab.py +13 -21
- gratinglab-0.3.8/src/gratinglab/gui/qt/recent.py +59 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/scalar_tab.py +14 -22
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/scene3d_panel.py +4 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/setup_tab.py +23 -28
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/worker.py +6 -4
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/icon.py +1 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/boundary_view.py +9 -20
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/efficiency_dialog.py +2 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/import_view.py +11 -11
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/main_window.py +28 -5
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/wiki_view.py +1 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/facet-fitting.md +1 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/file-formats.md +10 -18
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/flattening.md +9 -16
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/icc-correction.md +3 -5
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/overview.md +3 -6
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/reading-outputs.md +8 -12
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/row-groups.md +27 -28
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/scars-and-masking.md +3 -3
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/swath-statistics.md +1 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/tip-correction.md +1 -2
- {gratinglab-0.3.6 → gratinglab-0.3.8/src/gratinglab.egg-info}/PKG-INFO +78 -61
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/SOURCES.txt +7 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_changelog.py +33 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_cmethod_tab.py +6 -1
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_compare_tab.py +6 -1
- gratinglab-0.3.8/tests/test_gui_help_menu.py +125 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_launcher.py +217 -0
- gratinglab-0.3.8/tests/test_gui_polish.py +112 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_provenance.py +66 -1
- gratinglab-0.3.8/tests/test_gui_provenance_panel.py +89 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_qt.py +29 -16
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_theme.py +1 -0
- gratinglab-0.3.6/src/gratinglab/gui/qt/launcher.py +0 -210
- {gratinglab-0.3.6 → gratinglab-0.3.8}/LICENSE +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/MANIFEST.in +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/setup.cfg +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/setup.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/checks.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/compare.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/convergence.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/geometry.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/diagram.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/docs.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/efficiency_plot.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/icon.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/integral_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/mathtext.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/orders.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/geometry_tab.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/profile_plot_panel.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/sizing.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/theming.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/theory_viewer.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/rcwa_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/richtext.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/scalar_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/state.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/theme.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/illumination.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/boundary.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/efficiency_table.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/ggp.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/txl.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/data/SOURCES.md +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/fresnel.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/optical.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/refractiveindex.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/typical.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/measured.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/_analyzer_summary.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/analyzer.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/average.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/cross_section.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/pipeline.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/swaths.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/cli.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/config.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/analysis.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/image_flatten.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/orientation.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/processing.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/region_mask.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/scars.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/tip.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/data/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/data/aggregation.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/app.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/canvas.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/layout.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/swath_dialog.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/worker.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/state.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/file_io.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/ibw.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/metrics.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/sem.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/spm.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/settings.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/analysis.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/icc.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/diagnostics.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/profiles.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/statistics.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/groove-orientation.md +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/workflows.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/problem.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_base.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_polyline.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_shapes.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_trapezoid.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_types.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/resolution.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/result.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_conditioning.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_execution.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_scalar_groove.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/base.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/_core.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/_series.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_boundary.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_core.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_finite.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_greens.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_kernels.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_nystrom.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/__init__.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/_core.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/_stack.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/scalar.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/dependency_links.txt +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/entry_points.txt +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/requires.txt +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/top_level.txt +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_checks.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_cmethod.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_compare.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_conditioning.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_convergence.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_cross_method.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_efficiency_table.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_four_way.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_fresnel.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_geometry.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_ggp.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_cmethod_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_diagram.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_diagram3d.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_docs.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_integral_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_mathtext.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_orders.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_rcwa_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_richtext.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_scalar_options.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_state.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_illumination.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_core.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_corpus.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_finite.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_graded.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_greens.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_kernels.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_measured_polygon.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_operators.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_solver.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_io_boundary.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_littrow.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_materials.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_measured.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_perturbation.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_profiles.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rayleigh_anomaly.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rcwa.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rcwa_benchmarks.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_refractiveindex.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_resolution.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_result.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_scalar.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_conformance.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_execution.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_progress.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_trapezoidal_solvers.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_txl.py +0 -0
- {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_typical.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gratinglab
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: Open platform for diffraction grating groove metrology and efficiency analysis
|
|
5
5
|
Author: Jake McCoy, Aditi Gangadharan
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -55,15 +55,14 @@ gratinglab is a Python package for measuring the groove profiles of diffraction
|
|
|
55
55
|
gratings from atomic force microscope (AFM) scans and for computing the diffraction
|
|
56
56
|
efficiency of a grating from such a profile.
|
|
57
57
|
|
|
58
|
-
The AFM metrology is the part of the package
|
|
58
|
+
The AFM metrology is the part of the package used day to day. It measures blaze angles
|
|
59
59
|
from a scan, averages the grooves into a single profile, reports how much that profile
|
|
60
60
|
varies down the scan, corrects for the shape of the AFM tip where the data allow it,
|
|
61
61
|
and exports the averaged groove as a boundary profile. The three rigorous
|
|
62
62
|
efficiency solvers left experimental status in 0.3, after agreeing with one
|
|
63
|
-
another and with a
|
|
64
|
-
comparison in `docs/findings.md`). Their known limits
|
|
65
|
-
|
|
66
|
-
than a result to rely on.
|
|
63
|
+
another and with measured efficiencies from a grating whose groove was also
|
|
64
|
+
measured by AFM (the TASTE comparison in `docs/findings.md`). Their known limits
|
|
65
|
+
are stated in the table under Status.
|
|
67
66
|
|
|
68
67
|
Rigorous methods for computing grating efficiency are well established, and open codes
|
|
69
68
|
exist for several of them, although each carries its own conventions and
|
|
@@ -116,17 +115,17 @@ backends sit beside them, both written in-house: a rigorous coupled-wave analysi
|
|
|
116
115
|
(RCWA), which also models coated gratings through conformal layers, and the
|
|
117
116
|
C-method (Chandezon). Each has a tab in the efficiency window since 0.2.1.
|
|
118
117
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
The three rigorous solvers are out of experimental status as of 0.3. On the
|
|
119
|
+
December 2018 TASTE campaign (296 measured efficiencies, computed on the
|
|
120
|
+
grating's own AFM groove), the integral method, the C-method and RCWA agree with
|
|
121
|
+
one another to 2e-4 RMS and with the measurement to 0.038, so the 0.038 residual
|
|
122
|
+
does not come from the solvers. Two limits apply. The C-method refuses a wall too
|
|
123
|
+
steep for its truncation. On a measured polygon under
|
|
124
|
+
`conductivity="tabulated"`, the integral solver needs `profile_smoothing="auto"`
|
|
125
|
+
for a correct absorption. It is opt-in because it moves finely sampled profiles
|
|
126
|
+
at long wavelengths; with the default the polygon is solved as given, and the
|
|
127
|
+
energy-balance warning names the option when it fires. A tightly rounded valley
|
|
128
|
+
is a known limitation.
|
|
130
129
|
The scalar solver is an approximation and is described as one.
|
|
131
130
|
|
|
132
131
|
**Every modelling method here still needs verification**, the rigorous ones
|
|
@@ -162,11 +161,10 @@ the materials layer, and a calculation of the resolving power implied by the num
|
|
|
162
161
|
of grooves measured.
|
|
163
162
|
|
|
164
163
|
The aim is gratings in general: reflection and transmission, metallic and
|
|
165
|
-
dielectric, bare and coated, from X-rays to the infrared.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
project began with, where the integral method is the established approach and
|
|
164
|
+
dielectric, bare and coated, from X-rays to the infrared. Any half-cone angle γ is
|
|
165
|
+
supported, from 90° (in-plane, classical) through general conical incidence to
|
|
166
|
+
extreme off-plane at grazing incidence (γ of a degree or two). That last is the soft
|
|
167
|
+
X-ray spectroscopy regime, where the integral method is the established approach and
|
|
170
168
|
general-purpose RCWA codes are least reliable. `Illumination.classical`,
|
|
171
169
|
`Illumination.conical(theta, phi)` and `Illumination.offplane(graze, azimuth)` all
|
|
172
170
|
build the same object, and every solver accepts any of them. Which method serves which regime, and what is not yet covered
|
|
@@ -178,9 +176,9 @@ The method backends, in order of development:
|
|
|
178
176
|
| Method | Status |
|
|
179
177
|
|---|---|
|
|
180
178
|
| Scalar (Kirchhoff, x-ray blaze form) | an approximation; checked against closed-form results |
|
|
181
|
-
| Integral method (boundary integral, conical, undercut-capable) |
|
|
182
|
-
| RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) |
|
|
183
|
-
| C-method (Chandezon) |
|
|
179
|
+
| Integral method (boundary integral, conical, undercut-capable) | perfect and finite conductivity (`conductivity="tabulated"`, Goray & Schmidt 2010), absolute efficiencies with the absorbed fraction recorded; a corner-graded mesh for profiles with corners (`corner_grading=4`, the default; `0` is the equal-arc mesh), under either boundary condition; checked against published benchmark tables (Maystre & Popov; Goray & Schmidt), energy balance and reciprocity |
|
|
180
|
+
| RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) | lamellar gratings exact and other profiles staircased, transmitted orders, and coatings through conformal layers (`Problem.layers`); checked against Fresnel, the Airy film formula, reciprocity, the integral solver, and published lamellar values (Granet; Lalanne & Hugonin; Gralak; Goray & Schmidt's conical tables). Not yet checked: staircase accuracy in metallic TM, and layers of a second material against an independent code |
|
|
181
|
+
| C-method (Chandezon) | perfect conductor in any mount, and one interface into an absorbing or lossless material, conical and coupled; checked against Goray & Schmidt's Table 3, Fresnel and the integral solver. Refuses vertical facets, undercuts, and walls too steep for the scan (the harmonics a wall needs grow with its slope times P sin γ / λ; measured against the integral solver, see the method note); converges slowly on sawtooth corners, and loses precision at high truncation on profiles deeper than about half the period, both reported in provenance. No coatings |
|
|
184
182
|
|
|
185
183
|
The comparison harness also accepts an efficiency table already computed by an
|
|
186
184
|
external program as one of its methods, so that comparison plots can be made without
|
|
@@ -209,9 +207,9 @@ resolving_power(problem, illumination, wavelength=2.0, order=3).r
|
|
|
209
207
|
The resolving power follows from the Rayleigh criterion as `R = |m|·N`, and
|
|
210
208
|
`line_profile` gives the line shape for a finite number of grooves from which that
|
|
211
209
|
result is derived. A problem whose `n_grooves` is not set is refused rather than
|
|
212
|
-
treated as having infinitely many grooves. Resolving power
|
|
213
|
-
placement is
|
|
214
|
-
|
|
210
|
+
treated as having infinitely many grooves. Resolving power that includes
|
|
211
|
+
groove-placement errors is not implemented yet, and the ideal formula is not offered
|
|
212
|
+
in its place.
|
|
215
213
|
|
|
216
214
|
### Correcting for the AFM tip
|
|
217
215
|
|
|
@@ -223,7 +221,8 @@ Bruker's ScanAsyst-Air can be represented. No method can recover the bottom of a
|
|
|
223
221
|
trough the tip did not enter, and the correction leaves such regions as upper bounds
|
|
224
222
|
instead of filling them in.
|
|
225
223
|
|
|
226
|
-
On one real scan, the groove depth and the fitted facet
|
|
224
|
+
On one real scan, the blaze angle implied by the groove depth and the fitted facet
|
|
225
|
+
angle disagree by 7.6°.
|
|
227
226
|
Erosion with the probe at its nominal radius recovers none of that difference, and
|
|
228
227
|
reproducing it by simulation requires an apex worn to about 80 nm, which excludes the
|
|
229
228
|
nominal tip as the cause
|
|
@@ -312,15 +311,15 @@ gratinglab-gui # straight to geometry, solvers, comparison
|
|
|
312
311
|
gratinglab-metrology-gui # straight to AFM import, blaze angles, boundary profiles
|
|
313
312
|
```
|
|
314
313
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
314
|
+
`gratinglab-app` opens a chooser for the two windows. Each window has a **Go** menu
|
|
315
|
+
that switches to the other window or back to the chooser (`Ctrl+Shift+M`), and
|
|
316
|
+
switching reuses a window that is already open. The chooser has the same
|
|
317
|
+
**View → Theme** and **Help** menus as the windows, so the theme, which applies to the
|
|
318
|
+
whole application, and the theory pages can be reached without opening a window
|
|
319
|
+
first. While the chooser is on screen it imports both windows on a background thread,
|
|
320
|
+
so the first window opens in about a fifth of a second; the matplotlib and scipy
|
|
321
|
+
imports otherwise take several seconds. `gratinglab-gui` and
|
|
322
|
+
`gratinglab-metrology-gui` open one window directly.
|
|
324
323
|
|
|
325
324
|
The windows are built with Qt (PySide6), so `pip install "gratinglab[gui]"` needs no
|
|
326
325
|
system toolkit to be installed first. PySide6 is licensed under the LGPLv3 and is an
|
|
@@ -362,8 +361,7 @@ hides it), and the window has one tab for each task:
|
|
|
362
361
|
*Four solvers on one problem: a 40 nm gold sinusoid, 5% deep, at 80° incidence,
|
|
363
362
|
unpolarized. The lower panel is each solver's difference from the C-method on a
|
|
364
363
|
log scale: the integral method and RCWA agree with it to within 2e-6, and the
|
|
365
|
-
scalar one is off by up to 0.018
|
|
366
|
-
methods, not a verification of any of them; see Status.*
|
|
364
|
+
scalar one is off by up to 0.018.*
|
|
367
365
|
- **Setup:** the material library, showing which optical constants are installed, the
|
|
368
366
|
range each covers, where each came from, and how to add others. The coating itself is
|
|
369
367
|
chosen in the geometry dock, because it is a `Problem` field, like the period, and the
|
|
@@ -372,7 +370,12 @@ hides it), and the window has one tab for each task:
|
|
|
372
370
|
Each registered solver receives a tab generated from the solver registry, so a
|
|
373
371
|
new backend appears in the window once it is registered.
|
|
374
372
|
|
|
375
|
-
The Help menu contains the theory pages, rendered with typeset equations and
|
|
373
|
+
The **Help** menu contains the theory pages, rendered with typeset equations and
|
|
374
|
+
tables. It is on every window, including the metrology window, whose results are
|
|
375
|
+
reported in the angles the conventions page defines and whose analysis
|
|
376
|
+
`theory/metrology.md` describes.
|
|
377
|
+
**Help → About gratinglab** names the authors and states which version is running and
|
|
378
|
+
when it was released, so a bug report can say which copy it came from.
|
|
376
379
|
**View → Theme** switches between System (following the operating system), Light,
|
|
377
380
|
Dark, Solarized Light, Solarized Dark and High contrast; the choice is remembered and
|
|
378
381
|
applies to the metrology window too. Diffraction orders are coloured by sign, cool for
|
|
@@ -380,15 +383,13 @@ negative and warm for positive, with each order's colour shown beside it in the
|
|
|
380
383
|
list.
|
|
381
384
|
|
|
382
385
|
A macOS `.app` is built with `python tools/apps.py bundle --app gratinglab`, on macOS
|
|
383
|
-
13 or later, the minimum supported by the PySide6 wheels. That is one `
|
|
384
|
-
opening the chooser
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
is a stub that execs the console script in this checkout's virtualenv rather than a
|
|
386
|
+
13 or later, the minimum supported by the PySide6 wheels. That is one `gratinglab.app`
|
|
387
|
+
opening the chooser; `--app metrology` and `--app efficiency` build bundles that open
|
|
388
|
+
one window directly. `--dest ~/Applications` puts it where Finder will list it. The
|
|
389
|
+
bundle is a stub that execs the console script in this checkout's virtualenv, not a
|
|
388
390
|
frozen application, so it is not portable to another machine; `python tools/apps.py
|
|
389
|
-
check --app gratinglab` reports when that virtualenv has moved
|
|
390
|
-
|
|
391
|
-
gratinglab` regenerates the icon from the artwork in `gratinglab.gui.icon`.
|
|
391
|
+
check --app gratinglab` reports when that virtualenv has moved. `python tools/apps.py
|
|
392
|
+
icon --app gratinglab` regenerates the icon from the artwork in `gratinglab.gui.icon`.
|
|
392
393
|
|
|
393
394
|
## Documentation
|
|
394
395
|
|
|
@@ -430,6 +431,25 @@ git clone https://github.com/jamccoy/gratinglab.wiki.git ../gratinglab.wiki
|
|
|
430
431
|
.venv/bin/ruff check .
|
|
431
432
|
```
|
|
432
433
|
|
|
434
|
+
A full run is about 2750 tests and some minutes of every core, most of it
|
|
435
|
+
thousands of small solves rather than a few long ones. For the loop before a
|
|
436
|
+
push there is a quicker pass, which leaves out the tests that build a real Qt
|
|
437
|
+
window, caps the BLAS pools at one thread and runs at a lower priority:
|
|
438
|
+
|
|
439
|
+
```bash
|
|
440
|
+
.venv/bin/python tools/test_fast.py
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
It takes pytest's own arguments (`-k`, `-x`, a path), and `--gui` puts the Qt
|
|
444
|
+
tests back. The deselection is a marker, so plain pytest can do it too:
|
|
445
|
+
|
|
446
|
+
```bash
|
|
447
|
+
.venv/bin/python -m pytest -m "not gui"
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
Neither replaces the full suite, which CI runs on four platform and version
|
|
451
|
+
legs; they are for keeping an older machine usable between pushes.
|
|
452
|
+
|
|
433
453
|
The test suite relies on three practices in particular:
|
|
434
454
|
|
|
435
455
|
- **Physical self-checks.** `checks.check_reciprocity` and `checks.check_energy_balance`
|
|
@@ -480,11 +500,8 @@ separately forbids using the author's or contributors' names to endorse or promo
|
|
|
480
500
|
derived product without prior written permission.
|
|
481
501
|
|
|
482
502
|
**What you do not get.** The software is provided as is, without warranty of any kind,
|
|
483
|
-
and the author is not liable for any use of it.
|
|
484
|
-
|
|
485
|
-
validated on few gratings (see Status): a number this software produces is evidence
|
|
486
|
-
to be checked against another method, not a result to be relied on because a
|
|
487
|
-
computer printed it.
|
|
503
|
+
and the author is not liable for any use of it. The efficiency solvers are young and
|
|
504
|
+
validated on few gratings (see Status).
|
|
488
505
|
|
|
489
506
|
Contributions are accepted under the same licence. A pull request is taken as agreement
|
|
490
507
|
that the contribution may be distributed under BSD-3-Clause.
|
|
@@ -511,9 +528,9 @@ and `Provenance` records what a run actually used.
|
|
|
511
528
|
| `[gui]` | PySide6-Essentials | LGPL-3.0 |
|
|
512
529
|
| `[refractiveindex]` | PyYAML | MIT |
|
|
513
530
|
|
|
514
|
-
A solver-only install is permissive throughout. The `gui` extra
|
|
515
|
-
|
|
516
|
-
|
|
531
|
+
A solver-only install is permissive throughout. The `gui` extra installs PySide6,
|
|
532
|
+
which is LGPL-3.0. PyQt6 is not used because its GPL licence would extend to code
|
|
533
|
+
that imports it.
|
|
517
534
|
Importing an LGPL library dynamically does not change the licence of what you write,
|
|
518
535
|
but redistributing a bundled application that ships Qt inside it brings LGPL
|
|
519
536
|
obligations for that component — chiefly your users' right to substitute their own
|
|
@@ -525,11 +542,11 @@ no such question.
|
|
|
525
542
|
**Optical constant tables.** None are distributed with the package or kept in the
|
|
526
543
|
repository: the suite runs on an invented gold-sized table of its own, and its
|
|
527
544
|
refractiveindex.info reader fixtures are files that site dedicates CC0. A table you
|
|
528
|
-
add is governed by the terms of whoever published it, not by this licence.
|
|
529
|
-
|
|
530
|
-
|
|
545
|
+
add is governed by the terms of whoever published it, not by this licence. CXRO states
|
|
546
|
+
no terms at all, and a table exported from another program carries whatever that
|
|
547
|
+
program's terms attach to it.
|
|
531
548
|
[`SOURCES.md`](https://github.com/jamccoy/gratinglab/blob/master/src/gratinglab/materials/data/SOURCES.md)
|
|
532
|
-
records where each kind comes from
|
|
549
|
+
records where each kind of table comes from.
|
|
533
550
|
|
|
534
551
|
**Measurement data.** AFM scans and the reference efficiency corpus are the research
|
|
535
552
|
group's data and are deliberately absent from the repository, as described above under
|
|
@@ -11,15 +11,14 @@ gratinglab is a Python package for measuring the groove profiles of diffraction
|
|
|
11
11
|
gratings from atomic force microscope (AFM) scans and for computing the diffraction
|
|
12
12
|
efficiency of a grating from such a profile.
|
|
13
13
|
|
|
14
|
-
The AFM metrology is the part of the package
|
|
14
|
+
The AFM metrology is the part of the package used day to day. It measures blaze angles
|
|
15
15
|
from a scan, averages the grooves into a single profile, reports how much that profile
|
|
16
16
|
varies down the scan, corrects for the shape of the AFM tip where the data allow it,
|
|
17
17
|
and exports the averaged groove as a boundary profile. The three rigorous
|
|
18
18
|
efficiency solvers left experimental status in 0.3, after agreeing with one
|
|
19
|
-
another and with a
|
|
20
|
-
comparison in `docs/findings.md`). Their known limits
|
|
21
|
-
|
|
22
|
-
than a result to rely on.
|
|
19
|
+
another and with measured efficiencies from a grating whose groove was also
|
|
20
|
+
measured by AFM (the TASTE comparison in `docs/findings.md`). Their known limits
|
|
21
|
+
are stated in the table under Status.
|
|
23
22
|
|
|
24
23
|
Rigorous methods for computing grating efficiency are well established, and open codes
|
|
25
24
|
exist for several of them, although each carries its own conventions and
|
|
@@ -72,17 +71,17 @@ backends sit beside them, both written in-house: a rigorous coupled-wave analysi
|
|
|
72
71
|
(RCWA), which also models coated gratings through conformal layers, and the
|
|
73
72
|
C-method (Chandezon). Each has a tab in the efficiency window since 0.2.1.
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
The three rigorous solvers are out of experimental status as of 0.3. On the
|
|
75
|
+
December 2018 TASTE campaign (296 measured efficiencies, computed on the
|
|
76
|
+
grating's own AFM groove), the integral method, the C-method and RCWA agree with
|
|
77
|
+
one another to 2e-4 RMS and with the measurement to 0.038, so the 0.038 residual
|
|
78
|
+
does not come from the solvers. Two limits apply. The C-method refuses a wall too
|
|
79
|
+
steep for its truncation. On a measured polygon under
|
|
80
|
+
`conductivity="tabulated"`, the integral solver needs `profile_smoothing="auto"`
|
|
81
|
+
for a correct absorption. It is opt-in because it moves finely sampled profiles
|
|
82
|
+
at long wavelengths; with the default the polygon is solved as given, and the
|
|
83
|
+
energy-balance warning names the option when it fires. A tightly rounded valley
|
|
84
|
+
is a known limitation.
|
|
86
85
|
The scalar solver is an approximation and is described as one.
|
|
87
86
|
|
|
88
87
|
**Every modelling method here still needs verification**, the rigorous ones
|
|
@@ -118,11 +117,10 @@ the materials layer, and a calculation of the resolving power implied by the num
|
|
|
118
117
|
of grooves measured.
|
|
119
118
|
|
|
120
119
|
The aim is gratings in general: reflection and transmission, metallic and
|
|
121
|
-
dielectric, bare and coated, from X-rays to the infrared.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
project began with, where the integral method is the established approach and
|
|
120
|
+
dielectric, bare and coated, from X-rays to the infrared. Any half-cone angle γ is
|
|
121
|
+
supported, from 90° (in-plane, classical) through general conical incidence to
|
|
122
|
+
extreme off-plane at grazing incidence (γ of a degree or two). That last is the soft
|
|
123
|
+
X-ray spectroscopy regime, where the integral method is the established approach and
|
|
126
124
|
general-purpose RCWA codes are least reliable. `Illumination.classical`,
|
|
127
125
|
`Illumination.conical(theta, phi)` and `Illumination.offplane(graze, azimuth)` all
|
|
128
126
|
build the same object, and every solver accepts any of them. Which method serves which regime, and what is not yet covered
|
|
@@ -134,9 +132,9 @@ The method backends, in order of development:
|
|
|
134
132
|
| Method | Status |
|
|
135
133
|
|---|---|
|
|
136
134
|
| Scalar (Kirchhoff, x-ray blaze form) | an approximation; checked against closed-form results |
|
|
137
|
-
| Integral method (boundary integral, conical, undercut-capable) |
|
|
138
|
-
| RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) |
|
|
139
|
-
| C-method (Chandezon) |
|
|
135
|
+
| Integral method (boundary integral, conical, undercut-capable) | perfect and finite conductivity (`conductivity="tabulated"`, Goray & Schmidt 2010), absolute efficiencies with the absorbed fraction recorded; a corner-graded mesh for profiles with corners (`corner_grading=4`, the default; `0` is the equal-arc mesh), under either boundary condition; checked against published benchmark tables (Maystre & Popov; Goray & Schmidt), energy balance and reciprocity |
|
|
136
|
+
| RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) | lamellar gratings exact and other profiles staircased, transmitted orders, and coatings through conformal layers (`Problem.layers`); checked against Fresnel, the Airy film formula, reciprocity, the integral solver, and published lamellar values (Granet; Lalanne & Hugonin; Gralak; Goray & Schmidt's conical tables). Not yet checked: staircase accuracy in metallic TM, and layers of a second material against an independent code |
|
|
137
|
+
| C-method (Chandezon) | perfect conductor in any mount, and one interface into an absorbing or lossless material, conical and coupled; checked against Goray & Schmidt's Table 3, Fresnel and the integral solver. Refuses vertical facets, undercuts, and walls too steep for the scan (the harmonics a wall needs grow with its slope times P sin γ / λ; measured against the integral solver, see the method note); converges slowly on sawtooth corners, and loses precision at high truncation on profiles deeper than about half the period, both reported in provenance. No coatings |
|
|
140
138
|
|
|
141
139
|
The comparison harness also accepts an efficiency table already computed by an
|
|
142
140
|
external program as one of its methods, so that comparison plots can be made without
|
|
@@ -165,9 +163,9 @@ resolving_power(problem, illumination, wavelength=2.0, order=3).r
|
|
|
165
163
|
The resolving power follows from the Rayleigh criterion as `R = |m|·N`, and
|
|
166
164
|
`line_profile` gives the line shape for a finite number of grooves from which that
|
|
167
165
|
result is derived. A problem whose `n_grooves` is not set is refused rather than
|
|
168
|
-
treated as having infinitely many grooves. Resolving power
|
|
169
|
-
placement is
|
|
170
|
-
|
|
166
|
+
treated as having infinitely many grooves. Resolving power that includes
|
|
167
|
+
groove-placement errors is not implemented yet, and the ideal formula is not offered
|
|
168
|
+
in its place.
|
|
171
169
|
|
|
172
170
|
### Correcting for the AFM tip
|
|
173
171
|
|
|
@@ -179,7 +177,8 @@ Bruker's ScanAsyst-Air can be represented. No method can recover the bottom of a
|
|
|
179
177
|
trough the tip did not enter, and the correction leaves such regions as upper bounds
|
|
180
178
|
instead of filling them in.
|
|
181
179
|
|
|
182
|
-
On one real scan, the groove depth and the fitted facet
|
|
180
|
+
On one real scan, the blaze angle implied by the groove depth and the fitted facet
|
|
181
|
+
angle disagree by 7.6°.
|
|
183
182
|
Erosion with the probe at its nominal radius recovers none of that difference, and
|
|
184
183
|
reproducing it by simulation requires an apex worn to about 80 nm, which excludes the
|
|
185
184
|
nominal tip as the cause
|
|
@@ -268,15 +267,15 @@ gratinglab-gui # straight to geometry, solvers, comparison
|
|
|
268
267
|
gratinglab-metrology-gui # straight to AFM import, blaze angles, boundary profiles
|
|
269
268
|
```
|
|
270
269
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
270
|
+
`gratinglab-app` opens a chooser for the two windows. Each window has a **Go** menu
|
|
271
|
+
that switches to the other window or back to the chooser (`Ctrl+Shift+M`), and
|
|
272
|
+
switching reuses a window that is already open. The chooser has the same
|
|
273
|
+
**View → Theme** and **Help** menus as the windows, so the theme, which applies to the
|
|
274
|
+
whole application, and the theory pages can be reached without opening a window
|
|
275
|
+
first. While the chooser is on screen it imports both windows on a background thread,
|
|
276
|
+
so the first window opens in about a fifth of a second; the matplotlib and scipy
|
|
277
|
+
imports otherwise take several seconds. `gratinglab-gui` and
|
|
278
|
+
`gratinglab-metrology-gui` open one window directly.
|
|
280
279
|
|
|
281
280
|
The windows are built with Qt (PySide6), so `pip install "gratinglab[gui]"` needs no
|
|
282
281
|
system toolkit to be installed first. PySide6 is licensed under the LGPLv3 and is an
|
|
@@ -318,8 +317,7 @@ hides it), and the window has one tab for each task:
|
|
|
318
317
|
*Four solvers on one problem: a 40 nm gold sinusoid, 5% deep, at 80° incidence,
|
|
319
318
|
unpolarized. The lower panel is each solver's difference from the C-method on a
|
|
320
319
|
log scale: the integral method and RCWA agree with it to within 2e-6, and the
|
|
321
|
-
scalar one is off by up to 0.018
|
|
322
|
-
methods, not a verification of any of them; see Status.*
|
|
320
|
+
scalar one is off by up to 0.018.*
|
|
323
321
|
- **Setup:** the material library, showing which optical constants are installed, the
|
|
324
322
|
range each covers, where each came from, and how to add others. The coating itself is
|
|
325
323
|
chosen in the geometry dock, because it is a `Problem` field, like the period, and the
|
|
@@ -328,7 +326,12 @@ hides it), and the window has one tab for each task:
|
|
|
328
326
|
Each registered solver receives a tab generated from the solver registry, so a
|
|
329
327
|
new backend appears in the window once it is registered.
|
|
330
328
|
|
|
331
|
-
The Help menu contains the theory pages, rendered with typeset equations and
|
|
329
|
+
The **Help** menu contains the theory pages, rendered with typeset equations and
|
|
330
|
+
tables. It is on every window, including the metrology window, whose results are
|
|
331
|
+
reported in the angles the conventions page defines and whose analysis
|
|
332
|
+
`theory/metrology.md` describes.
|
|
333
|
+
**Help → About gratinglab** names the authors and states which version is running and
|
|
334
|
+
when it was released, so a bug report can say which copy it came from.
|
|
332
335
|
**View → Theme** switches between System (following the operating system), Light,
|
|
333
336
|
Dark, Solarized Light, Solarized Dark and High contrast; the choice is remembered and
|
|
334
337
|
applies to the metrology window too. Diffraction orders are coloured by sign, cool for
|
|
@@ -336,15 +339,13 @@ negative and warm for positive, with each order's colour shown beside it in the
|
|
|
336
339
|
list.
|
|
337
340
|
|
|
338
341
|
A macOS `.app` is built with `python tools/apps.py bundle --app gratinglab`, on macOS
|
|
339
|
-
13 or later, the minimum supported by the PySide6 wheels. That is one `
|
|
340
|
-
opening the chooser
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
is a stub that execs the console script in this checkout's virtualenv rather than a
|
|
342
|
+
13 or later, the minimum supported by the PySide6 wheels. That is one `gratinglab.app`
|
|
343
|
+
opening the chooser; `--app metrology` and `--app efficiency` build bundles that open
|
|
344
|
+
one window directly. `--dest ~/Applications` puts it where Finder will list it. The
|
|
345
|
+
bundle is a stub that execs the console script in this checkout's virtualenv, not a
|
|
344
346
|
frozen application, so it is not portable to another machine; `python tools/apps.py
|
|
345
|
-
check --app gratinglab` reports when that virtualenv has moved
|
|
346
|
-
|
|
347
|
-
gratinglab` regenerates the icon from the artwork in `gratinglab.gui.icon`.
|
|
347
|
+
check --app gratinglab` reports when that virtualenv has moved. `python tools/apps.py
|
|
348
|
+
icon --app gratinglab` regenerates the icon from the artwork in `gratinglab.gui.icon`.
|
|
348
349
|
|
|
349
350
|
## Documentation
|
|
350
351
|
|
|
@@ -386,6 +387,25 @@ git clone https://github.com/jamccoy/gratinglab.wiki.git ../gratinglab.wiki
|
|
|
386
387
|
.venv/bin/ruff check .
|
|
387
388
|
```
|
|
388
389
|
|
|
390
|
+
A full run is about 2750 tests and some minutes of every core, most of it
|
|
391
|
+
thousands of small solves rather than a few long ones. For the loop before a
|
|
392
|
+
push there is a quicker pass, which leaves out the tests that build a real Qt
|
|
393
|
+
window, caps the BLAS pools at one thread and runs at a lower priority:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
.venv/bin/python tools/test_fast.py
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
It takes pytest's own arguments (`-k`, `-x`, a path), and `--gui` puts the Qt
|
|
400
|
+
tests back. The deselection is a marker, so plain pytest can do it too:
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
.venv/bin/python -m pytest -m "not gui"
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
Neither replaces the full suite, which CI runs on four platform and version
|
|
407
|
+
legs; they are for keeping an older machine usable between pushes.
|
|
408
|
+
|
|
389
409
|
The test suite relies on three practices in particular:
|
|
390
410
|
|
|
391
411
|
- **Physical self-checks.** `checks.check_reciprocity` and `checks.check_energy_balance`
|
|
@@ -436,11 +456,8 @@ separately forbids using the author's or contributors' names to endorse or promo
|
|
|
436
456
|
derived product without prior written permission.
|
|
437
457
|
|
|
438
458
|
**What you do not get.** The software is provided as is, without warranty of any kind,
|
|
439
|
-
and the author is not liable for any use of it.
|
|
440
|
-
|
|
441
|
-
validated on few gratings (see Status): a number this software produces is evidence
|
|
442
|
-
to be checked against another method, not a result to be relied on because a
|
|
443
|
-
computer printed it.
|
|
459
|
+
and the author is not liable for any use of it. The efficiency solvers are young and
|
|
460
|
+
validated on few gratings (see Status).
|
|
444
461
|
|
|
445
462
|
Contributions are accepted under the same licence. A pull request is taken as agreement
|
|
446
463
|
that the contribution may be distributed under BSD-3-Clause.
|
|
@@ -467,9 +484,9 @@ and `Provenance` records what a run actually used.
|
|
|
467
484
|
| `[gui]` | PySide6-Essentials | LGPL-3.0 |
|
|
468
485
|
| `[refractiveindex]` | PyYAML | MIT |
|
|
469
486
|
|
|
470
|
-
A solver-only install is permissive throughout. The `gui` extra
|
|
471
|
-
|
|
472
|
-
|
|
487
|
+
A solver-only install is permissive throughout. The `gui` extra installs PySide6,
|
|
488
|
+
which is LGPL-3.0. PyQt6 is not used because its GPL licence would extend to code
|
|
489
|
+
that imports it.
|
|
473
490
|
Importing an LGPL library dynamically does not change the licence of what you write,
|
|
474
491
|
but redistributing a bundled application that ships Qt inside it brings LGPL
|
|
475
492
|
obligations for that component — chiefly your users' right to substitute their own
|
|
@@ -481,11 +498,11 @@ no such question.
|
|
|
481
498
|
**Optical constant tables.** None are distributed with the package or kept in the
|
|
482
499
|
repository: the suite runs on an invented gold-sized table of its own, and its
|
|
483
500
|
refractiveindex.info reader fixtures are files that site dedicates CC0. A table you
|
|
484
|
-
add is governed by the terms of whoever published it, not by this licence.
|
|
485
|
-
|
|
486
|
-
|
|
501
|
+
add is governed by the terms of whoever published it, not by this licence. CXRO states
|
|
502
|
+
no terms at all, and a table exported from another program carries whatever that
|
|
503
|
+
program's terms attach to it.
|
|
487
504
|
[`SOURCES.md`](https://github.com/jamccoy/gratinglab/blob/master/src/gratinglab/materials/data/SOURCES.md)
|
|
488
|
-
records where each kind comes from
|
|
505
|
+
records where each kind of table comes from.
|
|
489
506
|
|
|
490
507
|
**Measurement data.** AFM scans and the reference efficiency corpus are the research
|
|
491
508
|
group's data and are deliberately absent from the repository, as described above under
|
|
@@ -127,8 +127,8 @@ not a free choice.
|
|
|
127
127
|
for example, every ray lies 1.5000° from `+ẑ` and 178.5000° from `ĝ`, so the cone
|
|
128
128
|
opens along `−ĝ` and not along `ĝ`. A drawing that opens it along `ĝ` places every
|
|
129
129
|
ray 180° out. Code that consumes γ only through the scalars `sin γ` / `cos γ` cannot
|
|
130
|
-
detect the difference,
|
|
131
|
-
|
|
130
|
+
detect the difference, so a drawing is the first place it matters (see
|
|
131
|
+
`docs/findings.md`).
|
|
132
132
|
|
|
133
133
|
In operational terms, `k_z = k cos γ` is conserved, and `sin γ = 1` (γ = 90°) is the
|
|
134
134
|
in-plane case. Extreme off-plane mounts have small γ, and the soft-X-ray work uses
|
|
@@ -147,9 +147,8 @@ the angles it uses, and all three resolve to the same internal representation.
|
|
|
147
147
|
$$\hat{t} = -\hat{d}$$
|
|
148
148
|
|
|
149
149
|
`Profile.height(t)` describes a shape in a normalised parameter `t`. `gratinglab.profiles` does
|
|
150
|
-
not state which physical direction `+t` points in
|
|
151
|
-
|
|
152
|
-
it: `+t` runs along `-d̂`, that is, against the dispersion direction.
|
|
150
|
+
not itself state which physical direction `+t` points in. The wave conventions above
|
|
151
|
+
determine it: `+t` runs along `-d̂`, that is, against the dispersion direction.
|
|
153
152
|
|
|
154
153
|
Two independent derivations give this result.
|
|
155
154
|
|
|
@@ -169,8 +168,7 @@ vectors above give `∫ e^{-iΦ_m(t)} e^{-2πimt} dx/p` when `t ↔ +x`. Substit
|
|
|
169
168
|
`t ↔ -x` maps one integral onto the complex conjugate of the other.
|
|
170
169
|
|
|
171
170
|
No numerical result depends on this choice. Conjugation leaves `|G_m|²`, the only
|
|
172
|
-
quantity any caller consumes, bit-identical
|
|
173
|
-
consistent but unstated for so long. It matters only where a drawing places a facet
|
|
171
|
+
quantity any caller consumes, bit-identical. It matters only where a drawing places a facet
|
|
174
172
|
relative to a ray. If the direction is reversed, the incident beam strikes the
|
|
175
173
|
anti-blaze facet and the blaze arrow leaves through the back of the active facet.
|
|
176
174
|
|
|
@@ -182,9 +180,8 @@ omission is itself the finding. The behaviour is pinned by
|
|
|
182
180
|
`tests/test_geometry.py::TestFacetHandedness`; see also `docs/findings.md`.
|
|
183
181
|
|
|
184
182
|
Not every consumer takes only `|G_m|²`. The integral solver places the curve
|
|
185
|
-
itself,
|
|
186
|
-
|
|
187
|
-
(`solvers/integral/_boundary.py`), and
|
|
183
|
+
itself, at `x = (1 − t) P` (`solvers/integral/_boundary.py`); placing it at
|
|
184
|
+
`x = t P` would solve every asymmetric groove as its mirror image. And
|
|
188
185
|
`tests/test_cross_method.py::TestAgreementOnAnAsymmetricGroove` holds both
|
|
189
186
|
solvers to the same blaze order. Files that run along `+d̂`, PCGrate's `.ggp`
|
|
190
187
|
and the metrology pipeline's `x_norm`, cross into `t` in one place,
|
|
@@ -255,8 +252,7 @@ $$\left|\frac{m\lambda}{p\,\sin\gamma} - \sin\alpha\right| \leq 1$$
|
|
|
255
252
|
which is `|sin β_m| ≤ 1` with `sin β_m` taken from the equation above, and is what
|
|
256
253
|
`geometry.is_propagating(geometry.sin_beta(...))` computes. Mind the sign on
|
|
257
254
|
`sin α`: the mirrored form `|sin α + mλ/(p sin γ)| ≤ 1` describes a different
|
|
258
|
-
mount
|
|
259
|
-
campaign", for what it cost). `tests/test_geometry.py::TestTheDocumentedPropagationTest`
|
|
255
|
+
mount (`findings.md`, "The June 2017 SCIL campaign"). `tests/test_geometry.py::TestTheDocumentedPropagationTest`
|
|
260
256
|
pins the prose and the code together.
|
|
261
257
|
|
|
262
258
|
Orders that fail this condition are evanescent. They are retained in the record with
|
|
@@ -335,9 +331,9 @@ correct counterpart and the other does not:
|
|
|
335
331
|
| renormalise so `Σ_m E_m = 1` | thesis Appendix-D.tex:420 | removed as an error |
|
|
336
332
|
|
|
337
333
|
The two factors differ in their symmetry. Appendix D's `cos β_m / cos α` is asymmetric
|
|
338
|
-
under `α ↔ β_m` and
|
|
339
|
-
|
|
340
|
-
|
|
334
|
+
under `α ↔ β_m` and violates Lorentz reciprocity. Dropping every factor, so that the
|
|
335
|
+
efficiency is the norm-squared Fourier coefficient alone, is also wrong: `O_m` is
|
|
336
|
+
symmetric, so reciprocity is
|
|
341
337
|
unaffected by it, and it is the factor that brings the shallow-groove limit into
|
|
342
338
|
agreement with a theory derived from the boundary condition instead of from a
|
|
343
339
|
transmittance function. See [`theory/scalar.md`](theory/scalar.md) §3 and
|
|
@@ -34,7 +34,7 @@ What it refuses, with `UnsupportedConfiguration`, rather than approximating:
|
|
|
34
34
|
|---|---|
|
|
35
35
|
| an undercut profile | the coordinate `u = y − a(x)` needs `a` to be a function |
|
|
36
36
|
| a vertical facet or sidewall: `Lamellar`, `Blazed(antiblaze_angle=90)`, a `FromProfileData` with two heights at one `t`, or ends that differ in height | `a'` is infinite there; any finite stand-in would be a smoothed facet, the failure `solvers/base.py` names |
|
|
37
|
-
| a wall too steep for the scan: one whose floor (§6, "Steep walls") exceeds the largest truncation accepted, 256 | the answer is wrong at every truncation the solver takes
|
|
37
|
+
| a wall too steep for the scan: one whose floor (§6, "Steep walls") exceeds the largest truncation accepted, 256 | the answer is wrong at every truncation the solver takes (an 88.8° wall at 1.55 nm off-plane gives efficiencies of 11 at N = 128) |
|
|
38
38
|
| a truncation below a steep wall's floor (`ValueError`, naming the floor) | measured wrong by 3.5e-3 to 6e2 there |
|
|
39
39
|
| any `conductivity` other than the two above | as for the integral solver |
|
|
40
40
|
|