Ticket #1175 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Delete WorkspaceGroup when it becomes empty

Reported by: Roman Tolchenov Owned by: Sofia Antony
Priority: major Milestone: Iteration 25
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description


Change History

comment:1 Changed 10 years ago by Nick Draper

  • Owner set to Sofia Antony
  • Status changed from new to assigned

comment:2 Changed 10 years ago by Sofia Antony

  • Status changed from assigned to accepted
  • Component set to Mantid

comment:3 Changed 10 years ago by Sofia Antony

(In [6575]) re#1175 - added a method to check the workspace group is empty and delete the group if the it is empty.

comment:4 Changed 10 years ago by Sofia Antony

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

comment:5 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester set to Michael Whitty

comment:6 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Works in cases where workspaces are deleted by user interface, but not when they're deleted through python calls it seems.

Example python script to replicate:

LoadRaw('irs21360.raw', '1')
LoadRaw('irs21360.raw', '2')
LoadRaw('irs21360.raw', '3')

GroupWorkspaces('grp','1,2,3')

mtd.deleteWorkspace('1')
mtd.deleteWorkspace('2')
mtd.deleteWorkspace('3')

This leaves an empty WorkspaceGroup in the Workspaces docked widget.

comment:7 Changed 10 years ago by Sofia Antony

  • Status changed from reopened to accepted

comment:8 Changed 10 years ago by Sofia Antony

(In [7171]) re#1175 -re#1175 - fix for delete group workspace when it's empty.Now it works from python interface too.

comment:9 Changed 10 years ago by Sofia Antony

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

comment:10 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying

comment:11 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

in [7174] this is working. workspace group gets deleted when it has no items left.

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2022

Note: See TracTickets for help on using tickets.