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.
Files changed (228) hide show
  1. {gratinglab-0.3.6/src/gratinglab.egg-info → gratinglab-0.3.8}/PKG-INFO +78 -61
  2. {gratinglab-0.3.6 → gratinglab-0.3.8}/README.md +77 -60
  3. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/conventions.md +11 -15
  4. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/cmethod.md +1 -1
  5. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/integral.md +18 -23
  6. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/metrology.md +9 -15
  7. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/rcwa.md +8 -23
  8. {gratinglab-0.3.6 → gratinglab-0.3.8}/docs/theory/scalar.md +9 -15
  9. {gratinglab-0.3.6 → gratinglab-0.3.8}/pyproject.toml +9 -0
  10. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/__init__.py +12 -1
  11. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/app.py +2 -2
  12. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/cmethod_options.py +2 -2
  13. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/comparison.py +3 -3
  14. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/diagram3d.py +2 -4
  15. gratinglab-0.3.8/src/gratinglab/gui/failures.py +39 -0
  16. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/launcher.py +3 -3
  17. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/provenance.py +79 -7
  18. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/cmethod_tab.py +13 -21
  19. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/compare_tab.py +2 -3
  20. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/geometry_panel.py +9 -7
  21. gratinglab-0.3.8/src/gratinglab/gui/qt/help_menu.py +93 -0
  22. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/integral_tab.py +13 -21
  23. gratinglab-0.3.8/src/gratinglab/gui/qt/launcher.py +342 -0
  24. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/main_window.py +32 -34
  25. gratinglab-0.3.8/src/gratinglab/gui/qt/provenance_panel.py +141 -0
  26. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/rcwa_tab.py +13 -21
  27. gratinglab-0.3.8/src/gratinglab/gui/qt/recent.py +59 -0
  28. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/scalar_tab.py +14 -22
  29. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/scene3d_panel.py +4 -2
  30. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/setup_tab.py +23 -28
  31. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/worker.py +6 -4
  32. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/icon.py +1 -1
  33. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/boundary_view.py +9 -20
  34. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/efficiency_dialog.py +2 -2
  35. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/import_view.py +11 -11
  36. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/main_window.py +28 -5
  37. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/wiki_view.py +1 -1
  38. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/facet-fitting.md +1 -2
  39. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/file-formats.md +10 -18
  40. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/flattening.md +9 -16
  41. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/icc-correction.md +3 -5
  42. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/overview.md +3 -6
  43. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/reading-outputs.md +8 -12
  44. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/row-groups.md +27 -28
  45. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/scars-and-masking.md +3 -3
  46. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/swath-statistics.md +1 -1
  47. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/tip-correction.md +1 -2
  48. {gratinglab-0.3.6 → gratinglab-0.3.8/src/gratinglab.egg-info}/PKG-INFO +78 -61
  49. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/SOURCES.txt +7 -0
  50. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_changelog.py +33 -0
  51. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_cmethod_tab.py +6 -1
  52. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_compare_tab.py +6 -1
  53. gratinglab-0.3.8/tests/test_gui_help_menu.py +125 -0
  54. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_launcher.py +217 -0
  55. gratinglab-0.3.8/tests/test_gui_polish.py +112 -0
  56. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_provenance.py +66 -1
  57. gratinglab-0.3.8/tests/test_gui_provenance_panel.py +89 -0
  58. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_qt.py +29 -16
  59. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_theme.py +1 -0
  60. gratinglab-0.3.6/src/gratinglab/gui/qt/launcher.py +0 -210
  61. {gratinglab-0.3.6 → gratinglab-0.3.8}/LICENSE +0 -0
  62. {gratinglab-0.3.6 → gratinglab-0.3.8}/MANIFEST.in +0 -0
  63. {gratinglab-0.3.6 → gratinglab-0.3.8}/setup.cfg +0 -0
  64. {gratinglab-0.3.6 → gratinglab-0.3.8}/setup.py +0 -0
  65. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/checks.py +0 -0
  66. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/compare.py +0 -0
  67. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/convergence.py +0 -0
  68. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/geometry.py +0 -0
  69. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/__init__.py +0 -0
  70. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/diagram.py +0 -0
  71. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/docs.py +0 -0
  72. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/efficiency_plot.py +0 -0
  73. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/icon.py +0 -0
  74. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/integral_options.py +0 -0
  75. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/mathtext.py +0 -0
  76. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/orders.py +0 -0
  77. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/__init__.py +0 -0
  78. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/geometry_tab.py +0 -0
  79. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/profile_plot_panel.py +0 -0
  80. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/sizing.py +0 -0
  81. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/theming.py +0 -0
  82. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/qt/theory_viewer.py +0 -0
  83. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/rcwa_options.py +0 -0
  84. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/richtext.py +0 -0
  85. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/scalar_options.py +0 -0
  86. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/state.py +0 -0
  87. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/gui/theme.py +0 -0
  88. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/illumination.py +0 -0
  89. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/__init__.py +0 -0
  90. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/boundary.py +0 -0
  91. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/efficiency_table.py +0 -0
  92. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/ggp.py +0 -0
  93. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/io/txl.py +0 -0
  94. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/__init__.py +0 -0
  95. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/data/SOURCES.md +0 -0
  96. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/fresnel.py +0 -0
  97. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/optical.py +0 -0
  98. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/refractiveindex.py +0 -0
  99. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/materials/typical.py +0 -0
  100. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/measured.py +0 -0
  101. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/__init__.py +0 -0
  102. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/_analyzer_summary.py +0 -0
  103. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/analyzer.py +0 -0
  104. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/__init__.py +0 -0
  105. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/average.py +0 -0
  106. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/cross_section.py +0 -0
  107. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/pipeline.py +0 -0
  108. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/boundary/swaths.py +0 -0
  109. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/cli.py +0 -0
  110. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/config.py +0 -0
  111. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/__init__.py +0 -0
  112. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/analysis.py +0 -0
  113. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/image_flatten.py +0 -0
  114. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/orientation.py +0 -0
  115. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/processing.py +0 -0
  116. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/region_mask.py +0 -0
  117. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/scars.py +0 -0
  118. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/core/tip.py +0 -0
  119. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/data/__init__.py +0 -0
  120. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/data/aggregation.py +0 -0
  121. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/__init__.py +0 -0
  122. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/__init__.py +0 -0
  123. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/app.py +0 -0
  124. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/canvas.py +0 -0
  125. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/layout.py +0 -0
  126. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/swath_dialog.py +0 -0
  127. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/qt/worker.py +0 -0
  128. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/gui/state.py +0 -0
  129. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/__init__.py +0 -0
  130. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/file_io.py +0 -0
  131. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/ibw.py +0 -0
  132. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/metrics.py +0 -0
  133. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/sem.py +0 -0
  134. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/io/spm.py +0 -0
  135. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/settings.py +0 -0
  136. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/__init__.py +0 -0
  137. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/analysis.py +0 -0
  138. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/stats/icc.py +0 -0
  139. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/__init__.py +0 -0
  140. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/diagnostics.py +0 -0
  141. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/profiles.py +0 -0
  142. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/visualization/statistics.py +0 -0
  143. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/__init__.py +0 -0
  144. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/wiki/groove-orientation.md +0 -0
  145. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/metrology/workflows.py +0 -0
  146. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/problem.py +0 -0
  147. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/__init__.py +0 -0
  148. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_base.py +0 -0
  149. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_polyline.py +0 -0
  150. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_shapes.py +0 -0
  151. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_trapezoid.py +0 -0
  152. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/profiles/_types.py +0 -0
  153. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/resolution.py +0 -0
  154. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/result.py +0 -0
  155. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/__init__.py +0 -0
  156. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_conditioning.py +0 -0
  157. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_execution.py +0 -0
  158. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/_scalar_groove.py +0 -0
  159. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/base.py +0 -0
  160. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/__init__.py +0 -0
  161. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/_core.py +0 -0
  162. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/cmethod/_series.py +0 -0
  163. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/__init__.py +0 -0
  164. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_boundary.py +0 -0
  165. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_core.py +0 -0
  166. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_finite.py +0 -0
  167. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_greens.py +0 -0
  168. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_kernels.py +0 -0
  169. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/integral/_nystrom.py +0 -0
  170. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/__init__.py +0 -0
  171. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/_core.py +0 -0
  172. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/rcwa/_stack.py +0 -0
  173. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab/solvers/scalar.py +0 -0
  174. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/dependency_links.txt +0 -0
  175. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/entry_points.txt +0 -0
  176. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/requires.txt +0 -0
  177. {gratinglab-0.3.6 → gratinglab-0.3.8}/src/gratinglab.egg-info/top_level.txt +0 -0
  178. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_checks.py +0 -0
  179. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_cmethod.py +0 -0
  180. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_compare.py +0 -0
  181. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_conditioning.py +0 -0
  182. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_convergence.py +0 -0
  183. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_cross_method.py +0 -0
  184. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_efficiency_table.py +0 -0
  185. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_four_way.py +0 -0
  186. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_fresnel.py +0 -0
  187. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_geometry.py +0 -0
  188. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_ggp.py +0 -0
  189. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_cmethod_options.py +0 -0
  190. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_diagram.py +0 -0
  191. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_diagram3d.py +0 -0
  192. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_docs.py +0 -0
  193. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_integral_options.py +0 -0
  194. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_mathtext.py +0 -0
  195. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_orders.py +0 -0
  196. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_rcwa_options.py +0 -0
  197. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_richtext.py +0 -0
  198. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_scalar_options.py +0 -0
  199. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_gui_state.py +0 -0
  200. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_illumination.py +0 -0
  201. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_core.py +0 -0
  202. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_corpus.py +0 -0
  203. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_finite.py +0 -0
  204. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_graded.py +0 -0
  205. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_greens.py +0 -0
  206. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_kernels.py +0 -0
  207. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_measured_polygon.py +0 -0
  208. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_operators.py +0 -0
  209. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_integral_solver.py +0 -0
  210. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_io_boundary.py +0 -0
  211. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_littrow.py +0 -0
  212. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_materials.py +0 -0
  213. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_measured.py +0 -0
  214. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_perturbation.py +0 -0
  215. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_profiles.py +0 -0
  216. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rayleigh_anomaly.py +0 -0
  217. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rcwa.py +0 -0
  218. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_rcwa_benchmarks.py +0 -0
  219. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_refractiveindex.py +0 -0
  220. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_resolution.py +0 -0
  221. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_result.py +0 -0
  222. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_scalar.py +0 -0
  223. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_conformance.py +0 -0
  224. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_execution.py +0 -0
  225. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_solver_progress.py +0 -0
  226. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_trapezoidal_solvers.py +0 -0
  227. {gratinglab-0.3.6 → gratinglab-0.3.8}/tests/test_txl.py +0 -0
  228. {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.6
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 in regular use. It measures blaze angles
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 measured campaign whose groove was measured too (the TASTE
64
- comparison in `docs/findings.md`). Their known limits are stated in the table
65
- under Status, and a number from any of them is still evidence to check rather
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
- **Since 0.3 the three rigorous solvers are no longer experimental.** The
120
- criterion was use on a real problem: on the December 2018 TASTE campaign, 296
121
- measured efficiencies against the grating's own AFM groove, the integral method,
122
- the C-method and RCWA agree with one another to 2e-4 RMS and with the
123
- measurement to 0.038, so the residual is measured not to be the solver. The two
124
- defects that comparison found are dealt with. The C-method refuses a wall too
125
- steep for its truncation. The integral solver's absorption on a measured polygon
126
- under `conductivity="tabulated"` is fixed by `profile_smoothing="auto"`, which is
127
- opt-in because it moves finely sampled profiles at long wavelengths; with the
128
- default the polygon is solved as given, and the energy-balance warning names the
129
- option when it fires. A tightly rounded valley remains a recorded limitation.
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. Every mount between the
166
- two extremes is supported, not only the extremes: any half-cone angle γ from 90°
167
- (in-plane, classical) through general conical incidence down to extreme off-plane at
168
- grazing incidence (γ of a degree or two), the soft X-ray spectroscopy regime the
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) | since 0.3 not experimental; 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 since 0.2.7; `0` is the equal-arc mesh), under either boundary condition; checked against published benchmark tables (Maystre & Popov; Goray & Schmidt), energy balance and reciprocity |
182
- | RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) | since 0.2.0, not experimental since 0.3; 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 |
183
- | C-method (Chandezon) | since 0.2.0, not experimental since 0.3; 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 |
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 degraded by errors in groove
213
- placement is planned; until it is implemented, the ideal formula is not used as an
214
- approximation for it.
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 angle disagree by 7.6°.
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
- There are two windows, and `gratinglab-app` is the front door that asks which one
316
- you want. Neither is a dead end: each carries a **Go** menu that switches to the other
317
- and returns to the chooser (`Ctrl+Shift+M`), and switching reuses a window that is
318
- already open rather than starting a second empty copy of it. Both halves are this one package — the metrology measures a groove and the
319
- solvers compute an efficiency from the result — but the desktop layer used to ship
320
- them as two commands and two application bundles, the AFM one still named after the
321
- repository it was merged from, which made the half in regular use the half that was
322
- hardest to find. The two direct commands above are unchanged, for a shortcut or a
323
- habit.
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. That agreement is a consistency check between
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 tables.
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 `GratingLab.app`
384
- opening the chooser, which is what you want installed; `--app metrology` and `--app
385
- efficiency` build bundles that skip the chooser and open one window directly, for
386
- anyone who would rather have that in the Dock. `--dest ~/Applications` puts it where Finder will list it. The bundle
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, which is the one
390
- failure a bundle cannot show from the outside. `python tools/apps.py icon --app
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. That disclaimer carries more weight
484
- here than it does for most packages, because the efficiency solvers are young and
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 is the one worth
515
- knowing about: Qt for Python is LGPL-3.0, which is the reason this project depends on
516
- PySide6 and not on PyQt6, whose licence is GPL and would reach your own code.
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. refractiveindex.info
529
- dedicates its files CC0, CXRO states no terms at all, and a table exported from another program
530
- carries whatever that program's terms attach to it.
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 and why none ships here.
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 in regular use. It measures blaze angles
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 measured campaign whose groove was measured too (the TASTE
20
- comparison in `docs/findings.md`). Their known limits are stated in the table
21
- under Status, and a number from any of them is still evidence to check rather
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
- **Since 0.3 the three rigorous solvers are no longer experimental.** The
76
- criterion was use on a real problem: on the December 2018 TASTE campaign, 296
77
- measured efficiencies against the grating's own AFM groove, the integral method,
78
- the C-method and RCWA agree with one another to 2e-4 RMS and with the
79
- measurement to 0.038, so the residual is measured not to be the solver. The two
80
- defects that comparison found are dealt with. The C-method refuses a wall too
81
- steep for its truncation. The integral solver's absorption on a measured polygon
82
- under `conductivity="tabulated"` is fixed by `profile_smoothing="auto"`, which is
83
- opt-in because it moves finely sampled profiles at long wavelengths; with the
84
- default the polygon is solved as given, and the energy-balance warning names the
85
- option when it fires. A tightly rounded valley remains a recorded limitation.
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. Every mount between the
122
- two extremes is supported, not only the extremes: any half-cone angle γ from 90°
123
- (in-plane, classical) through general conical incidence down to extreme off-plane at
124
- grazing incidence (γ of a degree or two), the soft X-ray spectroscopy regime the
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) | since 0.3 not experimental; 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 since 0.2.7; `0` is the equal-arc mesh), under either boundary condition; checked against published benchmark tables (Maystre & Popov; Goray & Schmidt), energy balance and reciprocity |
138
- | RCWA (in-plane, conical, off-plane; Li factorization, S-matrix, layer stacks) | since 0.2.0, not experimental since 0.3; 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 |
139
- | C-method (Chandezon) | since 0.2.0, not experimental since 0.3; 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 |
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 degraded by errors in groove
169
- placement is planned; until it is implemented, the ideal formula is not used as an
170
- approximation for it.
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 angle disagree by 7.6°.
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
- There are two windows, and `gratinglab-app` is the front door that asks which one
272
- you want. Neither is a dead end: each carries a **Go** menu that switches to the other
273
- and returns to the chooser (`Ctrl+Shift+M`), and switching reuses a window that is
274
- already open rather than starting a second empty copy of it. Both halves are this one package — the metrology measures a groove and the
275
- solvers compute an efficiency from the result — but the desktop layer used to ship
276
- them as two commands and two application bundles, the AFM one still named after the
277
- repository it was merged from, which made the half in regular use the half that was
278
- hardest to find. The two direct commands above are unchanged, for a shortcut or a
279
- habit.
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. That agreement is a consistency check between
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 tables.
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 `GratingLab.app`
340
- opening the chooser, which is what you want installed; `--app metrology` and `--app
341
- efficiency` build bundles that skip the chooser and open one window directly, for
342
- anyone who would rather have that in the Dock. `--dest ~/Applications` puts it where Finder will list it. The bundle
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, which is the one
346
- failure a bundle cannot show from the outside. `python tools/apps.py icon --app
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. That disclaimer carries more weight
440
- here than it does for most packages, because the efficiency solvers are young and
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 is the one worth
471
- knowing about: Qt for Python is LGPL-3.0, which is the reason this project depends on
472
- PySide6 and not on PyQt6, whose licence is GPL and would reach your own code.
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. refractiveindex.info
485
- dedicates its files CC0, CXRO states no terms at all, and a table exported from another program
486
- carries whatever that program's terms attach to it.
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 and why none ships here.
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, which is why this convention went unstated until something had
131
- to draw the cone (see `docs/findings.md`).
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, because nothing required it until a
151
- profile and a ray were drawn in the same frame. The wave conventions above determine
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, which is why the convention remained
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, and through 0.1.12 it placed it at `x = t P`, solving every asymmetric
186
- groove as its mirror image. It now places it at `x = (1 − t) P`
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, and stood here until 2026-10-30 (`findings.md`, "The June 2017 SCIL
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 does violate Lorentz reciprocity, which is why it was rejected. The
339
- conclusion that was then drawn, that the efficiency is the norm-squared Fourier
340
- coefficient alone, went one step too far. `O_m` is symmetric, so reciprocity is
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. Issue #7: an 88.8° wall at 1.55 nm off-plane returned efficiencies of 11 at N = 128 |
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