Skip to content

Provider for qbins #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Provider for qbins #170

wants to merge 3 commits into from

Conversation

jokasimr
Copy link
Contributor

Fixes #142

@github-project-automation github-project-automation bot moved this to In progress in Development Board Jul 30, 2025
@jokasimr jokasimr moved this from In progress to Selected in Development Board Jul 30, 2025
Copy link
Member

@SimonHeybrock SimonHeybrock left a comment

Choose a reason for hiding this comment

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

This does not appear to be used anywhere, what is the idea here?

wmin, wmax = wbins[0], wbins[-1]
qmin = reflectometry_q(wavelength=wmax, theta=theta_min)
qmax = reflectometry_q(wavelength=wmin, theta=theta_max)
qmin = max(qmin, sc.scalar(1e-3, unit='1/angstrom'))
Copy link
Member

Choose a reason for hiding this comment

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

Any reason for this particular hard maximum? Should be documented in the docstring at least.

qmin = reflectometry_q(wavelength=wmax, theta=theta_min)
qmax = reflectometry_q(wavelength=wmin, theta=theta_max)
qmin = max(qmin, sc.scalar(1e-3, unit='1/angstrom'))
return QBins(sc.geomspace('Q', qmin, qmax, 499))
Copy link
Member

Choose a reason for hiding this comment

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

Why 499? Should this be an input param?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Selected
Development

Successfully merging this pull request may close these issues.

Automatic QBins start and end based on sample rotation
2 participants