Commit b799bed
authored
Unify CIF parsing, category updates, and data handling (#108)
* Adds CIF parsing capabilities to Category and Parameter classes
* Refines error logging using _log_name
* Refactors for CIF parsing functionality
* Enhances CIF parsing support in experiments: 1st step
* Enhances CIF parsing in SampleModelFactory
* Refactors CIF handling in SampleModelFactory and enhances DatablockItem with categories property
* Enhances CIF handling in SampleModelFactory
* Refactors ExperimentType initialization to use default values and updates experiment handling in factory methods
* Refactors dependencies section in pixi.toml
* More refactoring of old datastore towards new data
* Refactors symmetry constraint methods in AtomSites and Cell classes for clarity and consistency
* Refactors category update handling and updates CIF serialization methods
* Refactors update methods and intruduces update_priority attribute
* Refactors category update calls in CalculatorBase and Fitter classes for consistency
* Refactors calculation methods and updates category handling in analysis and experiment modules
* Refactors PdCwlData and PdDataBase classes for improved structure and clarity
* Refactors category update handling in Project class and consolidates update logic for plotting methods
* Refactors PdDataBase and PdCwlData classes to introduce d-spacing calculations and update methods for improved data handling
* Refactors CIF serialization methods by removing unused datastore functions and simplifying experiment data handling
* Adds Refln and ReflnData classes for single crystal diffraction data handling; removes obsolete ScDatastore class
* Refactors data handling by replacing 'datastore' references with 'data'
* Clean up code across multiple modules
* Refactors Analysis class by removing unused calculator variable and simplifies fitting method; deletes obsolete datastore test files
* Refactors add methods in various classes
* Refactors LineSegment and ExcludedRegion classes to add 'id' parameter
* Refactors one of the tutorials to fit new API
* Refactors PolynomialTerm, LineSegment, and ExcludedRegion classes to add 'id' parameter
* Add missing SPDX license headers
* Refactor PolynomialTerm, LineSegment, and ExcludedRegion classes to set default values for parameters
* Mark parameters as free if uncertainty is present in CIF deserialization
* Update Biso values in lbco.cif to include uncertainty and remove unnecessary data
* Add minimal example for Rietveld refinement using LBCO and HRPT data
* Remove unnecessary blank line before showing project summary report
* Refactor minimal example to streamline project and experiment definitions, removing unnecessary logging and aliases
* Remove trailing whitespace from multiple files
* Refactor joint_fit_experiments method call to use 'add' instead of 'add_from_args'
* Refactor add method in Experiments and SampleModels to allow explicit sample/experiment input
* Refactor Chebyshev and LineSegment models to include identifier descriptors and improve documentation
* Refactor PdDataPoint classes to update point_id type and adjust mixin order
* Refactor SampleModelFactory to introduce _create_minimal method for creating default models
* Update tutorials
* Add new data classes for powder diffraction and total scattering experiments
* Temporary disable unit tests hook from pre-push checks
* Add d_spacing property to PdDataBase for calculated d values
* Refactor tutorials
* Refactor format_value function to improve value formatting and precision handling
* Refactor category_collection_to_cif function for improved readability and structure
* Add analysis output for free parameters in project
* Fix category_entry_name handling to ensure it defaults to an empty string
* Update default values in ExperimentType to use enum values directly
* Update functional tests following API changes
* Update unit tests following new API
* Refactor sample model and experiment addition methods
* Enhance Chebyshev and LineSegment classes with improved background handling and id property
* Refactor Chebyshev and LineSegment background tests to use mock parent data structure
* Enhance Analysis and Fitter classes to update categories during fitting process
* Refactor CategoryCollection to optimize child instance creation logic
* Refactor test_fit_neutron_pd_cwl_hs to improve background data handling and enhance project setup
* Refactor sample model addition in tutorials to use updated method
* Fix fill_value in LineSegmentBackground interpolation to use correct y values
* Update category handling in Fitter
* Refactor time-of-flight to follow new API
* More fixes of the functional tests
* Refactor test_joint_fit
* More refactoring in fitting tests
* More refactoring of the tutorials to follow new API
* Fix formatting
* Update unit tests to follow new API
* Refactor CIF string handling in Experiment and SampleModel factories
* Refactor package structure by removing obsolete files and adding new data modules
* Add '_pd_proc.intensity_norm' and '_pd_proc.intensity_norm_su' to CIF handler
* Add integration tests for reading CIF files from Scipp
* Rename functional tests to integration tests
* Add SPDX license headers to test_scipp-cif.py
* Extend tutorial section in docs
* Refactor test for reading CIF files from Scipp
* Bump deps
* Pin pdffit2 to be <1.5.2 due to the issues or changed API in the latest versions
* Add temporary workaround for pdffit2 installation in CI workflow
* Update dependencies in pixi.toml and pyproject.toml for pdffit2 compatibility
* Remove temporary workaround for pdffit2 installation in CI workflow
* Add id-based data download API; update tutorials
* Adopts download_data in tests; prunes local data
* Excludes TOF regions in neutron PD fit test
* Removes repo download util; updates index hash
* Updates tutorial to new data download API
* Adapts tests to index-based download_data
* Uses returned data paths instead of hardcoded ones
* Debugging (3089,) (3098,) (3089,)
* Runs script tests serially (temporarily?)
* More debugging
* Runs tutorial scripts in isolated subprocesses
* Streamlines tutorial tests in CI workflow
* Justifies subprocess use in tests; adds noqa tags1 parent 17ded39 commit b799bed
141 files changed
Lines changed: 14596 additions & 50948 deletions
File tree
- .github/workflows
- docs
- architecture
- tutorials
- src/easydiffraction
- analysis
- calculators
- categories
- fit_helpers
- core
- experiments
- categories
- background
- data
- peak
- datastore
- experiment
- io/cif
- project
- sample_models
- categories
- sample_model
- utils
- tests
- integration
- fitting
- scipp-analysis/dream
- unit/easydiffraction
- analysis
- calculators
- categories
- fit_helpers
- core
- experiments
- categories
- background
- datastore
- experiment
- io/cif
- project
- sample_models
- categories
- tmp
- data_old
- data
- tools
- tutorials
- data
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 | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
234 | | - | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
144 | 160 | | |
145 | 161 | | |
146 | 162 | | |
| |||
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
| |||
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
227 | 236 | | |
228 | 237 | | |
229 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
Binary file not shown.
0 commit comments