Skip to content

[ESSDIFFRACTION] refactor: reduce number of beer workflows and improve naming - #757

Open
jokasimr wants to merge 3 commits into
mainfrom
beer-add-q
Open

jokasimr wants to merge 3 commits into
mainfrom
beer-add-q

Conversation

@jokasimr

@jokasimr jokasimr commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR refactors the workflow names in BEER to make them more consistent, clear and fewer.

Fixed #743

It keeps the old workflow names but warns that they are deprecated.

@github-actions github-actions Bot added the essdiffraction Issues for essdiffraction. label Sep 22, 2026
@github-actions github-actions Bot changed the title refactor: reduce number of beer workflows and improve naming [ESSDIFFRACTION] refactor: reduce number of beer workflows and improve naming Sep 22, 2026
Comment on lines -164 to +165
twotheta_bins = _focussing_two_theta_bins(data.coords['two_theta'], two_theta_bins)
coords = data.coords if 'two_theta' in data.coords else data.bins.coords
twotheta_bins = _focussing_two_theta_bins(coords['two_theta'], two_theta_bins)

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.

Looks like an unrelated change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's true!

I forgot that the change here is also supposed to address #743, allowing the modulation workflow to compute the same quantities as the other diffraction workflows, and that requires this change.

I'll update the PR description.

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.

Cannot see the update?

@jokasimr jokasimr Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The update is that I added "Fixes #743".

The change that you commented on is needed because in the (strictly speaking only the automatic peak finding) Beer modulation workflow the data is not binned by pixel at this stage in the workflow, so theta is an event coordinate.

This branch has not been deployed

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

Labels

essdiffraction Issues for essdiffraction.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ESSDIFFRACTION, BEER] Request for Sciline modulation workflow

2 participants