|
147 | 147 | "metadata": {}, |
148 | 148 | "outputs": [], |
149 | 149 | "source": [ |
150 | | - "workflow[Filename[SampleRun]] = amor.data.amor_sample_run(608)\n", |
151 | | - "workflow[SampleRotation[SampleRun]] = sc.scalar(0.85, unit='deg')\n", |
152 | | - "ioq8 = workflow.compute(NormalizedIofQ).hist()\n", |
153 | | - "\n", |
154 | | - "workflow[Filename[SampleRun]] = amor.data.amor_sample_run(609)\n", |
155 | | - "workflow[SampleRotation[SampleRun]] = sc.scalar(2.25, unit='deg')\n", |
156 | | - "ioq9 = workflow.compute(NormalizedIofQ).hist()\n", |
| 150 | + "runs = {\n", |
| 151 | + " '608': sc.scalar(0.85, unit='deg'),\n", |
| 152 | + " '609': sc.scalar(2.25, unit='deg'),\n", |
| 153 | + " '610': sc.scalar(3.65, unit='deg'),\n", |
| 154 | + " '611': sc.scalar(5.05, unit='deg'),\n", |
| 155 | + "}\n", |
157 | 156 | "\n", |
158 | | - "workflow[Filename[SampleRun]] = amor.data.amor_sample_run(610)\n", |
159 | | - "workflow[SampleRotation[SampleRun]] = sc.scalar(3.65, unit='deg')\n", |
160 | | - "ioq10 = workflow.compute(NormalizedIofQ).hist()\n", |
| 157 | + "results = {}\n", |
| 158 | + "for file, angle in runs.items():\n", |
| 159 | + " workflow[Filename[SampleRun]] = amor.data.amor_sample_run(file)\n", |
| 160 | + " workflow[SampleRotation[SampleRun]] = angle\n", |
| 161 | + " results[file] = workflow.compute(NormalizedIofQ).hist()\n", |
161 | 162 | "\n", |
162 | | - "sc.plot({'608': ioq8, '609': ioq9, '610': ioq10}, norm='log', vmin=1e-4)" |
| 163 | + "sc.plot(results, norm='log', vmin=1e-4)" |
163 | 164 | ] |
164 | 165 | }, |
165 | 166 | { |
|
353 | 354 | "mimetype": "text/x-python", |
354 | 355 | "name": "python", |
355 | 356 | "nbconvert_exporter": "python", |
356 | | - "pygments_lexer": "ipython3" |
| 357 | + "pygments_lexer": "ipython3", |
| 358 | + "version": "3.10.13" |
357 | 359 | } |
358 | 360 | }, |
359 | 361 | "nbformat": 4, |
|
0 commit comments