Ticket #4630 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Binary operation on workspace group can fail to group the output

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: minor Milestone: Release 2.0
Component: Mantid Keywords:
Cc: owen.arnold@… Blocked By:
Blocking: Tester: Janik Zikovsky

Description (last modified by Russell Taylor) (diff)

This happens if the output workspace already exists. The cause is a piece of code in BinaryOperation.cpp that deletes the output workspace in advance of running the algorithm if it can see that it will be replaced. In the case of a group the group itself is deleted when its last member goes and the group handling does not foresee this.

I will comment out the code that does the deletion and create a follow up ticket for the next iteration to look for an alternative solution. The cost is a potential temporary swelling of memory use if overwriting a workspace in a binary operation.

Attachments

group-operations.py (258 bytes) - added by Russell Taylor 9 years ago.
A script that demonstrates the problem

Change History

comment:1 Changed 9 years ago by Russell Taylor

  • Status changed from new to accepted

Changed 9 years ago by Russell Taylor

A script that demonstrates the problem

comment:2 Changed 9 years ago by Russell Taylor

  • Description modified (diff)

comment:3 Changed 9 years ago by Russell Taylor

  • Cc owen.arnold@… added

comment:4 Changed 9 years ago by Russell Taylor

Comment out deletion of pre-existing output workspace. Re #4630.

It can cause problems with workspace groups.

Changeset: 7384701074b43cb50577e8de17197c014da0b6c6

comment:5 Changed 9 years ago by Russell Taylor

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:6 Changed 9 years ago by Janik Zikovsky

  • Status changed from verify to verifying
  • Tester set to Janik Zikovsky

comment:7 Changed 9 years ago by Janik Zikovsky

  • Status changed from verifying to closed

Works in iteration32 and iteration33.

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5477

Note: See TracTickets for help on using tickets.