Skip to content

First attempt at improving efficiency of powder instrument.#194

Merged
jl-wynen merged 7 commits into
mainfrom
powder_speed_up
Jun 18, 2026
Merged

First attempt at improving efficiency of powder instrument.#194
jl-wynen merged 7 commits into
mainfrom
powder_speed_up

Conversation

@jl-wynen

Copy link
Copy Markdown
Collaborator

On local machine it goes from 215 s to 60 s while preserving chi2 of fit.

Improved geometry, set more statistics on thermal moderator, increased split slightly, reduced number of guides in curve

On local machine it goes from 215 s to 60 s while preserving chi2 of fit.

Improved geometry, set more statistics on thermal moderator, increased split slightly, reduced number of guides in curve
# Update the source focus parameters to match the first guide element
source.set_parameters(
dist=source_to_feeder, focus_xw=feeder.xwidth, focus_yh=1.2 * feeder.yheight
#dist=source_to_psc + 0.05, focus_xw=0.03, focus_yh=0.04

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@mads-bertelsen What about this? Should it be removed?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@jl-wynen FYI a relevant McStasScript feature is incoming: mpi=“auto” will (via underlying mcrun) spawn across whatever (local) pool is available. I believe @mads-bertelsen will push it in a number of days.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Mads already told me. This would indeed be useful.

@jl-wynen jl-wynen force-pushed the powder_speed_up branch 2 times, most recently from b70c125 to d88cc7d Compare June 17, 2026 08:45
jl-wynen added 5 commits June 18, 2026 09:04
This comes from plotly and is a known issue:
jupyter-book/jupyter-book#1950
We had the problem the entire time but it was not flagged by myst. So suppressing it should be fine.
@jl-wynen jl-wynen merged commit 04e7e0a into main Jun 18, 2026
3 checks passed
@jl-wynen jl-wynen deleted the powder_speed_up branch June 18, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants