Skip to content

Conversation

@jellybean2004
Copy link
Contributor

Description

Sets the fold for Wedge Slicer to True, so the Wedge Averaging in Q does not create data in the negative Q space.

Fixes #3221

How Has This Been Tested?

Tried out a few data sets to see if the expected behaviour is produced.

Review Checklist:

[if using the editor, use [x] in place of [ ] to check a box]

Documentation (check at least one)

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)
    • Wheels installer (GH artifact) has been tested (installed and worked)

Licensing (untick if necessary)

  • The introduced changes comply with SasView license (BSD 3-Clause)

self.data.ymax, np.fabs(self.data.ymin))
self.dqmin = min(np.fabs(self.data.qx_data))
self.connect = self.base.connect

Copy link
Member

Choose a reason for hiding this comment

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

why do we need an extra line here

Copy link
Member

@butlerpd butlerpd left a comment

Choose a reason for hiding this comment

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

Code looks good to me with the question caveat. However conflicts need to be resolved before merging.

functionality tested on windows 11 and works as advertized. However note that the fold parameter has been removed from the Slicer Paremeter menu. I do not see how that is relevant to this pull request and will create another issue

@jellybean2004 jellybean2004 merged commit d22e1db into main Nov 12, 2025
30 checks passed
@jellybean2004 jellybean2004 deleted the qwedge branch November 12, 2025 16:24
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.

The Q wedge slicer has defaults to fold=false when it should be true

3 participants