Commit 6a52ea9
authored
Add single-crystal diffraction support via cryspy (#127)
* Implement the extinction category
* Implement the linked crystal category
* Add base class for single crystal experiments
* Clarify sy handling; move background property
* Update BraggScExperiment class
* Add SC Bragg reflection data and linked crystal
* Add single-crystal Bragg CW data mapping
* Remove unused linked crystal validator
* Add minimizer flag to calculator API
* Remove lru_cache; update data index hash
* Add single-crystal Tb2TiO7 HEiDi tutorial
* Add TODO about sy handling when loading CIF
* Add single-crystal support to Cryspy calculator
* Add stol propagation and d-spacing for SC data
* Add d-spacing computation and fix plotting checks
* Update SC tutorial
* Use Cryspy-calculated intensity output
* Update SC tutorial
* Update data index checksum
* Add new SC-TOF tutorial
* Add TOF single-crystal support via Cryspy
* Apply formatting
* Cache tutorials index; adjust Bragg SC test
* Add single-crystal F2 meas-vs-calc plot
* Update SG tutorials
* Add Single Crystal Diffraction section to docs
* Update SC tutorial
* Lower coverage threshold to 60%
* Clarify Miller index and intensity descriptions
* Add TODOs and fix docstring
* Remove ED tutorial data; tidy pyproject comments
* Remove kwargs from Refln init; add return type
* Add units to extinction parameters
* Add single-crystal neutron fitting tests
* Reduce Ruff excludes; lint/format tests
* Simplify single-crystal category initializers
* Rename refln_id to id per coreCIF
* Add CW/TOF SC ASCII import with wavelength
* Rename plot_sg to plot_sc for single-crystal
* Add single-crystal scatter comparison plotting
* Extract scatter trace creation to helper
* Rename traces for powder and single-crystal
* Use Plotly autorange; drop fixed axis limits
* Extract Plotly config to helper
* Centralize Plotly figure display logic
* Refactor Plotly figure creation and formatting
* Draw identity line in paper coordinates
* Add reusable Plotly layout helper
* Extract diagonal reference line helper
* Rename plot methods for powder/single-crystal
* Reformat Plotly plotter for readability
* Clarify diffraction plotter docstrings
* Add single-crystal plotting tests
* Remove deprecated plot alias; update tests
* Add sin(theta)/lambda to d-spacing conversion
* Update SC data API; compute d-spacing via util
* Fix reflection index attribute names
* Add single-crystal support to plotter base
* Unify powder/SC plotting with axis auto-detect
* Unify plotting API; replace d_spacing with x
* Rename all_x to unfiltered_x
* Rename meas/calc to intensity_*; add axis aliases
* Rename TotalData module to total_pd
* Update tests for sample-form and intensity API
* Log read/validation errors; import numpy globally
* Move instrument and extinction to SC base
* Split Bragg SC into CWL/TOF; update factory
* Refactor single-crystal instrument support
* Move instrument init to BraggPdExperiment
* Update tests for Pd/Sc instrument classes
* Add scattering-type aware x-axis defaults
* Increase CIF float precision to 8 decimals
* Update pixi lock
* Update docs code examples for style consistency
* Pin scipp for ARM macOS; use editable local pkg
* Refactor plotting; unify axis and data prep
* Add macOS 14.0 minimum version requirement
* Update plot_meas_vs_calc calls to use 'x' parameter for d_spacing1 parent 90aeca0 commit 6a52ea9
66 files changed
Lines changed: 7200 additions & 3861 deletions
File tree
- docs
- tutorials
- user-guide
- analysis-workflow
- src/easydiffraction
- analysis
- calculators
- fit_helpers
- display
- plotters
- experiments
- categories
- background
- data
- instrument
- experiment
- io/cif
- project
- utils
- tests
- integration/fitting
- unit/easydiffraction
- analysis/fit_helpers
- core
- display
- plotters
- experiments
- categories
- background
- instrument
- experiment
- io/cif
- tutorials
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments