Skip to content

[ESSREFLECTOMETRY] docs: better ground truth comparison in user guide - #739

Open
jokasimr wants to merge 3 commits into
mainfrom
better-ground-truth-comparison
Open

[ESSREFLECTOMETRY] docs: better ground truth comparison in user guide#739
jokasimr wants to merge 3 commits into
mainfrom
better-ground-truth-comparison

Conversation

@jokasimr

@jokasimr jokasimr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

It's nice to have a comparison that takes into account the instrument resolution, because then you can actually see that the results matches what we expect.

This is what the added figure looks like:

estia-comparison

@jokasimr
jokasimr requested a review from nvaytet September 8, 2026 14:23
@github-actions github-actions Bot added the essreflectometry Issues for essreflectometry. label Sep 8, 2026
@github-actions github-actions Bot changed the title docs: better ground truth comparison in user guide [ESSREFLECTOMETRY] docs: better ground truth comparison in user guide Sep 8, 2026
@jokasimr
jokasimr force-pushed the better-ground-truth-comparison branch from 33c4e08 to 5aaadce Compare September 8, 2026 17:08
"To compare it with this measurement, we smooth it with a kernel whose width varies with $Q$ and uses this run's `Q_resolution` coordinate.\n",
"This standard deviation includes the wavelength, sample-size, and detector contributions, averaged over the angles contributing to each $Q$ bin.\n",
"\n",
"We use [Refl1D's `convolve_sampled`](https://refl1d.readthedocs.io/en/stable/_modules/refl1d/sample/reflectivity.html), which integrates a tabulated ideal curve against a tabulated kernel.\n",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason this rendered badly in the docs

Image

" x=q.values[valid.values],\n",
" dx=half_width.values[valid.values],\n",
")\n",
"smoothed_ground_truth = sc.DataArray(\n",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the plot in the notebook is great. It's unfortunate that we need so much code to produce it. Can we think of another way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

essreflectometry Issues for essreflectometry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants