Skip to content
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

Handle failure in CreateGroupingWorkspace where group count > spectra count #262

Merged

Conversation

DanNixon
Copy link
Member

Fixes #11140.

To test, review unit test and see that the failure case is now tested, try the original failure case (in the Trac description) with different group numbers with different instruments.

@DanNixon DanNixon added the Framework Issues and pull requests related to components in the Framework label Feb 20, 2015
@DanNixon DanNixon added this to the Release 3.4 milestone Feb 20, 2015
@martyngigg martyngigg self-assigned this Feb 20, 2015
@martyngigg
Copy link
Member

The fix is fine and works as expected.

I tried a negative number for the FixedGroupCount property and it accepted it but created an empty group. I think that, while we are changing the algorithm, it is worth adding a BoundedValidator to the FixedGroupCount property so that it cannot be negative.

@martyngigg
Copy link
Member

👍

martyngigg added a commit that referenced this pull request Feb 20, 2015
…ace_handle_group_count_failure

Handle failure in CreateGroupingWorkspace where group count > spectra count
@martyngigg martyngigg merged commit a744806 into master Feb 20, 2015
@martyngigg martyngigg deleted the 11140_creategroupingworkspace_handle_group_count_failure branch February 20, 2015 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants