gratinglab 0.3.7__tar.gz → 0.3.9__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.7/src/gratinglab.egg-info → gratinglab-0.3.9}/PKG-INFO +59 -71
  2. {gratinglab-0.3.7 → gratinglab-0.3.9}/README.md +56 -68
  3. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/conventions.md +11 -15
  4. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/theory/cmethod.md +1 -1
  5. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/theory/integral.md +18 -23
  6. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/theory/metrology.md +9 -15
  7. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/theory/rcwa.md +8 -23
  8. {gratinglab-0.3.7 → gratinglab-0.3.9}/docs/theory/scalar.md +9 -15
  9. {gratinglab-0.3.7 → gratinglab-0.3.9}/pyproject.toml +2 -2
  10. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/__init__.py +1 -1
  11. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/app.py +2 -2
  12. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/cmethod_options.py +2 -2
  13. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/comparison.py +3 -3
  14. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/diagram3d.py +2 -4
  15. gratinglab-0.3.9/src/gratinglab/gui/failures.py +39 -0
  16. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/launcher.py +3 -3
  17. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/provenance.py +50 -4
  18. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/cmethod_tab.py +15 -22
  19. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/compare_tab.py +2 -3
  20. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/geometry_panel.py +9 -7
  21. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/help_menu.py +26 -28
  22. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/integral_tab.py +15 -22
  23. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/launcher.py +11 -8
  24. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/main_window.py +19 -4
  25. gratinglab-0.3.9/src/gratinglab/gui/qt/provenance_panel.py +141 -0
  26. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/rcwa_tab.py +15 -22
  27. gratinglab-0.3.9/src/gratinglab/gui/qt/recent.py +14 -0
  28. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/scalar_tab.py +16 -23
  29. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/scene3d_panel.py +4 -2
  30. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/setup_tab.py +23 -28
  31. gratinglab-0.3.9/src/gratinglab/gui/qt/theming.py +57 -0
  32. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/worker.py +6 -4
  33. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/theme.py +27 -131
  34. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/io/boundary.py +4 -2
  35. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/io/ggp.py +2 -1
  36. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/icon.py +1 -1
  37. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/boundary_view.py +9 -20
  38. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/efficiency_dialog.py +2 -2
  39. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/import_view.py +11 -11
  40. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/main_window.py +13 -1
  41. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/wiki_view.py +1 -1
  42. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/metrics.py +3 -1
  43. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/facet-fitting.md +1 -2
  44. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/file-formats.md +10 -18
  45. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/flattening.md +9 -16
  46. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/icc-correction.md +3 -5
  47. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/overview.md +3 -6
  48. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/reading-outputs.md +8 -12
  49. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/row-groups.md +27 -28
  50. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/scars-and-masking.md +3 -3
  51. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/swath-statistics.md +1 -1
  52. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/tip-correction.md +1 -2
  53. {gratinglab-0.3.7 → gratinglab-0.3.9/src/gratinglab.egg-info}/PKG-INFO +59 -71
  54. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab.egg-info/SOURCES.txt +5 -0
  55. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab.egg-info/requires.txt +2 -2
  56. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_cmethod_tab.py +2 -1
  57. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_compare_tab.py +1 -1
  58. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_help_menu.py +2 -2
  59. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_launcher.py +1 -1
  60. gratinglab-0.3.9/tests/test_gui_polish.py +112 -0
  61. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_provenance.py +1 -1
  62. gratinglab-0.3.9/tests/test_gui_provenance_panel.py +89 -0
  63. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_qt.py +6 -6
  64. gratinglab-0.3.7/src/gratinglab/gui/qt/theming.py +0 -249
  65. {gratinglab-0.3.7 → gratinglab-0.3.9}/LICENSE +0 -0
  66. {gratinglab-0.3.7 → gratinglab-0.3.9}/MANIFEST.in +0 -0
  67. {gratinglab-0.3.7 → gratinglab-0.3.9}/setup.cfg +0 -0
  68. {gratinglab-0.3.7 → gratinglab-0.3.9}/setup.py +0 -0
  69. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/checks.py +0 -0
  70. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/compare.py +0 -0
  71. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/convergence.py +0 -0
  72. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/geometry.py +0 -0
  73. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/__init__.py +0 -0
  74. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/diagram.py +0 -0
  75. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/docs.py +0 -0
  76. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/efficiency_plot.py +0 -0
  77. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/icon.py +0 -0
  78. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/integral_options.py +0 -0
  79. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/mathtext.py +0 -0
  80. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/orders.py +0 -0
  81. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/__init__.py +0 -0
  82. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/geometry_tab.py +0 -0
  83. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/profile_plot_panel.py +0 -0
  84. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/sizing.py +0 -0
  85. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/qt/theory_viewer.py +0 -0
  86. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/rcwa_options.py +0 -0
  87. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/richtext.py +0 -0
  88. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/scalar_options.py +0 -0
  89. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/gui/state.py +0 -0
  90. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/illumination.py +0 -0
  91. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/io/__init__.py +0 -0
  92. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/io/efficiency_table.py +0 -0
  93. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/io/txl.py +0 -0
  94. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/__init__.py +0 -0
  95. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/data/SOURCES.md +0 -0
  96. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/fresnel.py +0 -0
  97. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/optical.py +0 -0
  98. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/refractiveindex.py +0 -0
  99. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/materials/typical.py +0 -0
  100. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/measured.py +0 -0
  101. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/__init__.py +0 -0
  102. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/_analyzer_summary.py +0 -0
  103. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/analyzer.py +0 -0
  104. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/boundary/__init__.py +0 -0
  105. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/boundary/average.py +0 -0
  106. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/boundary/cross_section.py +0 -0
  107. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/boundary/pipeline.py +0 -0
  108. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/boundary/swaths.py +0 -0
  109. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/cli.py +0 -0
  110. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/config.py +0 -0
  111. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/__init__.py +0 -0
  112. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/analysis.py +0 -0
  113. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/image_flatten.py +0 -0
  114. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/orientation.py +0 -0
  115. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/processing.py +0 -0
  116. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/region_mask.py +0 -0
  117. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/scars.py +0 -0
  118. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/core/tip.py +0 -0
  119. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/data/__init__.py +0 -0
  120. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/data/aggregation.py +0 -0
  121. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/__init__.py +0 -0
  122. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/__init__.py +0 -0
  123. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/app.py +0 -0
  124. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/canvas.py +0 -0
  125. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/layout.py +0 -0
  126. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/swath_dialog.py +0 -0
  127. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/qt/worker.py +0 -0
  128. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/gui/state.py +0 -0
  129. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/__init__.py +0 -0
  130. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/file_io.py +0 -0
  131. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/ibw.py +0 -0
  132. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/sem.py +0 -0
  133. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/io/spm.py +0 -0
  134. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/settings.py +0 -0
  135. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/stats/__init__.py +0 -0
  136. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/stats/analysis.py +0 -0
  137. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/stats/icc.py +0 -0
  138. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/visualization/__init__.py +0 -0
  139. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/visualization/diagnostics.py +0 -0
  140. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/visualization/profiles.py +0 -0
  141. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/visualization/statistics.py +0 -0
  142. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/__init__.py +0 -0
  143. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/wiki/groove-orientation.md +0 -0
  144. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/metrology/workflows.py +0 -0
  145. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/problem.py +0 -0
  146. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/__init__.py +0 -0
  147. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/_base.py +0 -0
  148. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/_polyline.py +0 -0
  149. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/_shapes.py +0 -0
  150. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/_trapezoid.py +0 -0
  151. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/profiles/_types.py +0 -0
  152. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/resolution.py +0 -0
  153. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/result.py +0 -0
  154. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/__init__.py +0 -0
  155. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/_conditioning.py +0 -0
  156. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/_execution.py +0 -0
  157. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/_scalar_groove.py +0 -0
  158. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/base.py +0 -0
  159. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/cmethod/__init__.py +0 -0
  160. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/cmethod/_core.py +0 -0
  161. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/cmethod/_series.py +0 -0
  162. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/__init__.py +0 -0
  163. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_boundary.py +0 -0
  164. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_core.py +0 -0
  165. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_finite.py +0 -0
  166. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_greens.py +0 -0
  167. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_kernels.py +0 -0
  168. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/integral/_nystrom.py +0 -0
  169. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/rcwa/__init__.py +0 -0
  170. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/rcwa/_core.py +0 -0
  171. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/rcwa/_stack.py +0 -0
  172. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab/solvers/scalar.py +0 -0
  173. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab.egg-info/dependency_links.txt +0 -0
  174. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab.egg-info/entry_points.txt +0 -0
  175. {gratinglab-0.3.7 → gratinglab-0.3.9}/src/gratinglab.egg-info/top_level.txt +0 -0
  176. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_changelog.py +0 -0
  177. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_checks.py +0 -0
  178. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_cmethod.py +0 -0
  179. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_compare.py +0 -0
  180. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_conditioning.py +0 -0
  181. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_convergence.py +0 -0
  182. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_cross_method.py +0 -0
  183. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_efficiency_table.py +0 -0
  184. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_four_way.py +0 -0
  185. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_fresnel.py +0 -0
  186. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_geometry.py +0 -0
  187. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_ggp.py +0 -0
  188. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_cmethod_options.py +0 -0
  189. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_diagram.py +0 -0
  190. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_diagram3d.py +0 -0
  191. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_docs.py +0 -0
  192. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_integral_options.py +0 -0
  193. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_mathtext.py +0 -0
  194. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_orders.py +0 -0
  195. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_rcwa_options.py +0 -0
  196. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_richtext.py +0 -0
  197. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_scalar_options.py +0 -0
  198. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_state.py +0 -0
  199. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_gui_theme.py +0 -0
  200. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_illumination.py +0 -0
  201. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_core.py +0 -0
  202. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_corpus.py +0 -0
  203. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_finite.py +0 -0
  204. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_graded.py +0 -0
  205. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_greens.py +0 -0
  206. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_kernels.py +0 -0
  207. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_measured_polygon.py +0 -0
  208. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_operators.py +0 -0
  209. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_integral_solver.py +0 -0
  210. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_io_boundary.py +0 -0
  211. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_littrow.py +0 -0
  212. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_materials.py +0 -0
  213. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_measured.py +0 -0
  214. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_perturbation.py +0 -0
  215. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_profiles.py +0 -0
  216. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_rayleigh_anomaly.py +0 -0
  217. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_rcwa.py +0 -0
  218. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_rcwa_benchmarks.py +0 -0
  219. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_refractiveindex.py +0 -0
  220. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_resolution.py +0 -0
  221. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_result.py +0 -0
  222. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_scalar.py +0 -0
  223. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_solver_conformance.py +0 -0
  224. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_solver_execution.py +0 -0
  225. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_solver_progress.py +0 -0
  226. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_trapezoidal_solvers.py +0 -0
  227. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_txl.py +0 -0
  228. {gratinglab-0.3.7 → gratinglab-0.3.9}/tests/test_typical.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gratinglab
3
- Version: 0.3.7
3
+ Version: 0.3.9
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
@@ -21,7 +21,7 @@ License-File: LICENSE
21
21
  Requires-Dist: numpy>=1.26
22
22
  Requires-Dist: scipy>=1.11
23
23
  Requires-Dist: pydantic>=2.6
24
- Requires-Dist: endstation>=0.2.6
24
+ Requires-Dist: endstation>=0.3.0
25
25
  Requires-Dist: threadpoolctl>=3.1
26
26
  Provides-Extra: dev
27
27
  Requires-Dist: pytest>=9.2; extra == "dev"
@@ -33,7 +33,7 @@ Provides-Extra: gui
33
33
  Requires-Dist: matplotlib>=3.8; extra == "gui"
34
34
  Requires-Dist: PySide6-Essentials!=6.12.0,>=6.7; python_version < "3.12" and extra == "gui"
35
35
  Requires-Dist: PySide6-Essentials>=6.7; python_version >= "3.12" and extra == "gui"
36
- Requires-Dist: endstation[qt]>=0.2.6; extra == "gui"
36
+ Requires-Dist: endstation[qt]>=0.3.0; extra == "gui"
37
37
  Provides-Extra: metrology
38
38
  Requires-Dist: matplotlib>=3.9; extra == "metrology"
39
39
  Provides-Extra: refractiveindex
@@ -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,20 +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. The chooser itself carries
319
- the same **View → Theme** and **Help** menus the two windows do, so the theme — a
320
- setting for the whole application — and the theory pages are reachable without opening
321
- a window first. While it is on screen it imports both windows on a background thread,
322
- so the first open is a fifth of a second rather than the several seconds of matplotlib
323
- and scipy imports it used to be. Both halves are this one package — the metrology measures a groove and the
324
- solvers compute an efficiency from the result — but the desktop layer used to ship
325
- them as two commands and two application bundles, the AFM one still named after the
326
- repository it was merged from, which made the half in regular use the half that was
327
- hardest to find. The two direct commands above are unchanged, for a shortcut or a
328
- 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.
329
323
 
330
324
  The windows are built with Qt (PySide6), so `pip install "gratinglab[gui]"` needs no
331
325
  system toolkit to be installed first. PySide6 is licensed under the LGPLv3 and is an
@@ -367,8 +361,7 @@ hides it), and the window has one tab for each task:
367
361
  *Four solvers on one problem: a 40 nm gold sinusoid, 5% deep, at 80° incidence,
368
362
  unpolarized. The lower panel is each solver's difference from the C-method on a
369
363
  log scale: the integral method and RCWA agree with it to within 2e-6, and the
370
- scalar one is off by up to 0.018. That agreement is a consistency check between
371
- methods, not a verification of any of them; see Status.*
364
+ scalar one is off by up to 0.018.*
372
365
  - **Setup:** the material library, showing which optical constants are installed, the
373
366
  range each covers, where each came from, and how to add others. The coating itself is
374
367
  chosen in the geometry dock, because it is a `Problem` field, like the period, and the
@@ -378,10 +371,10 @@ Each registered solver receives a tab generated from the solver registry, so a
378
371
  new backend appears in the window once it is registered.
379
372
 
380
373
  The **Help** menu contains the theory pages, rendered with typeset equations and
381
- tables. It is on every window: the conventions page fixes the angles a measured
382
- profile is reported in, and `theory/metrology.md` describes the metrology window's
383
- own analysis, so the AFM window needs those pages at least as much as this one does.
384
- **Help → About GratingLab** names the authors and states which version is running 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
385
378
  when it was released, so a bug report can say which copy it came from.
386
379
  **View → Theme** switches between System (following the operating system), Light,
387
380
  Dark, Solarized Light, Solarized Dark and High contrast; the choice is remembered and
@@ -390,15 +383,13 @@ negative and warm for positive, with each order's colour shown beside it in the
390
383
  list.
391
384
 
392
385
  A macOS `.app` is built with `python tools/apps.py bundle --app gratinglab`, on macOS
393
- 13 or later, the minimum supported by the PySide6 wheels. That is one `GratingLab.app`
394
- opening the chooser, which is what you want installed; `--app metrology` and `--app
395
- efficiency` build bundles that skip the chooser and open one window directly, for
396
- anyone who would rather have that in the Dock. `--dest ~/Applications` puts it where Finder will list it. The bundle
397
- 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
398
390
  frozen application, so it is not portable to another machine; `python tools/apps.py
399
- check --app gratinglab` reports when that virtualenv has moved, which is the one
400
- failure a bundle cannot show from the outside. `python tools/apps.py icon --app
401
- 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`.
402
393
 
403
394
  ## Documentation
404
395
 
@@ -509,11 +500,8 @@ separately forbids using the author's or contributors' names to endorse or promo
509
500
  derived product without prior written permission.
510
501
 
511
502
  **What you do not get.** The software is provided as is, without warranty of any kind,
512
- and the author is not liable for any use of it. That disclaimer carries more weight
513
- here than it does for most packages, because the efficiency solvers are young and
514
- validated on few gratings (see Status): a number this software produces is evidence
515
- to be checked against another method, not a result to be relied on because a
516
- 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).
517
505
 
518
506
  Contributions are accepted under the same licence. A pull request is taken as agreement
519
507
  that the contribution may be distributed under BSD-3-Clause.
@@ -540,9 +528,9 @@ and `Provenance` records what a run actually used.
540
528
  | `[gui]` | PySide6-Essentials | LGPL-3.0 |
541
529
  | `[refractiveindex]` | PyYAML | MIT |
542
530
 
543
- A solver-only install is permissive throughout. The `gui` extra is the one worth
544
- knowing about: Qt for Python is LGPL-3.0, which is the reason this project depends on
545
- 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.
546
534
  Importing an LGPL library dynamically does not change the licence of what you write,
547
535
  but redistributing a bundled application that ships Qt inside it brings LGPL
548
536
  obligations for that component — chiefly your users' right to substitute their own
@@ -554,11 +542,11 @@ no such question.
554
542
  **Optical constant tables.** None are distributed with the package or kept in the
555
543
  repository: the suite runs on an invented gold-sized table of its own, and its
556
544
  refractiveindex.info reader fixtures are files that site dedicates CC0. A table you
557
- add is governed by the terms of whoever published it, not by this licence. refractiveindex.info
558
- dedicates its files CC0, CXRO states no terms at all, and a table exported from another program
559
- 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.
560
548
  [`SOURCES.md`](https://github.com/jamccoy/gratinglab/blob/master/src/gratinglab/materials/data/SOURCES.md)
561
- records where each kind comes from and why none ships here.
549
+ records where each kind of table comes from.
562
550
 
563
551
  **Measurement data.** AFM scans and the reference efficiency corpus are the research
564
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,20 +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. The chooser itself carries
275
- the same **View → Theme** and **Help** menus the two windows do, so the theme — a
276
- setting for the whole application — and the theory pages are reachable without opening
277
- a window first. While it is on screen it imports both windows on a background thread,
278
- so the first open is a fifth of a second rather than the several seconds of matplotlib
279
- and scipy imports it used to be. Both halves are this one package — the metrology measures a groove and the
280
- solvers compute an efficiency from the result — but the desktop layer used to ship
281
- them as two commands and two application bundles, the AFM one still named after the
282
- repository it was merged from, which made the half in regular use the half that was
283
- hardest to find. The two direct commands above are unchanged, for a shortcut or a
284
- 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.
285
279
 
286
280
  The windows are built with Qt (PySide6), so `pip install "gratinglab[gui]"` needs no
287
281
  system toolkit to be installed first. PySide6 is licensed under the LGPLv3 and is an
@@ -323,8 +317,7 @@ hides it), and the window has one tab for each task:
323
317
  *Four solvers on one problem: a 40 nm gold sinusoid, 5% deep, at 80° incidence,
324
318
  unpolarized. The lower panel is each solver's difference from the C-method on a
325
319
  log scale: the integral method and RCWA agree with it to within 2e-6, and the
326
- scalar one is off by up to 0.018. That agreement is a consistency check between
327
- methods, not a verification of any of them; see Status.*
320
+ scalar one is off by up to 0.018.*
328
321
  - **Setup:** the material library, showing which optical constants are installed, the
329
322
  range each covers, where each came from, and how to add others. The coating itself is
330
323
  chosen in the geometry dock, because it is a `Problem` field, like the period, and the
@@ -334,10 +327,10 @@ Each registered solver receives a tab generated from the solver registry, so a
334
327
  new backend appears in the window once it is registered.
335
328
 
336
329
  The **Help** menu contains the theory pages, rendered with typeset equations and
337
- tables. It is on every window: the conventions page fixes the angles a measured
338
- profile is reported in, and `theory/metrology.md` describes the metrology window's
339
- own analysis, so the AFM window needs those pages at least as much as this one does.
340
- **Help → About GratingLab** names the authors and states which version is running 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
341
334
  when it was released, so a bug report can say which copy it came from.
342
335
  **View → Theme** switches between System (following the operating system), Light,
343
336
  Dark, Solarized Light, Solarized Dark and High contrast; the choice is remembered and
@@ -346,15 +339,13 @@ negative and warm for positive, with each order's colour shown beside it in the
346
339
  list.
347
340
 
348
341
  A macOS `.app` is built with `python tools/apps.py bundle --app gratinglab`, on macOS
349
- 13 or later, the minimum supported by the PySide6 wheels. That is one `GratingLab.app`
350
- opening the chooser, which is what you want installed; `--app metrology` and `--app
351
- efficiency` build bundles that skip the chooser and open one window directly, for
352
- anyone who would rather have that in the Dock. `--dest ~/Applications` puts it where Finder will list it. The bundle
353
- 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
354
346
  frozen application, so it is not portable to another machine; `python tools/apps.py
355
- check --app gratinglab` reports when that virtualenv has moved, which is the one
356
- failure a bundle cannot show from the outside. `python tools/apps.py icon --app
357
- 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`.
358
349
 
359
350
  ## Documentation
360
351
 
@@ -465,11 +456,8 @@ separately forbids using the author's or contributors' names to endorse or promo
465
456
  derived product without prior written permission.
466
457
 
467
458
  **What you do not get.** The software is provided as is, without warranty of any kind,
468
- and the author is not liable for any use of it. That disclaimer carries more weight
469
- here than it does for most packages, because the efficiency solvers are young and
470
- validated on few gratings (see Status): a number this software produces is evidence
471
- to be checked against another method, not a result to be relied on because a
472
- 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).
473
461
 
474
462
  Contributions are accepted under the same licence. A pull request is taken as agreement
475
463
  that the contribution may be distributed under BSD-3-Clause.
@@ -496,9 +484,9 @@ and `Provenance` records what a run actually used.
496
484
  | `[gui]` | PySide6-Essentials | LGPL-3.0 |
497
485
  | `[refractiveindex]` | PyYAML | MIT |
498
486
 
499
- A solver-only install is permissive throughout. The `gui` extra is the one worth
500
- knowing about: Qt for Python is LGPL-3.0, which is the reason this project depends on
501
- 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.
502
490
  Importing an LGPL library dynamically does not change the licence of what you write,
503
491
  but redistributing a bundled application that ships Qt inside it brings LGPL
504
492
  obligations for that component — chiefly your users' right to substitute their own
@@ -510,11 +498,11 @@ no such question.
510
498
  **Optical constant tables.** None are distributed with the package or kept in the
511
499
  repository: the suite runs on an invented gold-sized table of its own, and its
512
500
  refractiveindex.info reader fixtures are files that site dedicates CC0. A table you
513
- add is governed by the terms of whoever published it, not by this licence. refractiveindex.info
514
- dedicates its files CC0, CXRO states no terms at all, and a table exported from another program
515
- 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.
516
504
  [`SOURCES.md`](https://github.com/jamccoy/gratinglab/blob/master/src/gratinglab/materials/data/SOURCES.md)
517
- records where each kind comes from and why none ships here.
505
+ records where each kind of table comes from.
518
506
 
519
507
  **Measurement data.** AFM scans and the reference efficiency corpus are the research
520
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