Skip to content

Conversation

@jokasimr
Copy link
Contributor

Increases the number of bins in wavelength to a value was found to be more suitable.

The suitable number of bins was determined by reducing data from a known sample, with different number of wavelength bin-edges, and comparing the results.

@jokasimr jokasimr requested a review from nvaytet April 15, 2025 08:29
Copy link
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

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

Sorry I had started my review 2 weeks ago but never clicked "Submit Review"...

"workflow[ChopperPhase[SampleRun]] = sc.scalar(-7.5, unit='deg')\n",
"\n",
"workflow[WavelengthBins] = sc.geomspace('wavelength', 2.8, 12.5, 301, unit='angstrom')\n",
"workflow[WavelengthBins] = sc.geomspace('wavelength', 2.8, 12.5, 2001, unit='angstrom')\n",
Copy link
Member

Choose a reason for hiding this comment

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

Did this make any noticeable difference to RAM usage or test runtimes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not noticeable, but it does increase the runtime of computing the reference slightly.
On my workstation the difference is from previously 1.76s to now 1.9s.

@jokasimr jokasimr requested a review from nvaytet April 30, 2025 11:44
@jokasimr jokasimr merged commit 812298a into main Apr 30, 2025
4 checks passed
@jokasimr jokasimr deleted the update-psi-comparison branch April 30, 2025 14:29
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