Ticket #2250 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Python: listing workspaces using keys

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: major Milestone: Iteration 27
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description

mtd.keys() should give a python list of the workspace names for use in mtd[]

Change History

comment:1 Changed 10 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:1 Changed 10 years ago by Martyn Gigg

(In [8786]) Implemented a python keys() function for the mantid object along with an iter method to allow easier looping over all workspaces within the ADS. E.g Can now write 'for w in mtd:...' and it loops over each workspace in turn. Fixes #2250

comment:2 Changed 10 years ago by Martyn Gigg

  • Status changed from verify to reopened
  • Resolution fixed deleted

comment:4 Changed 10 years ago by Martyn Gigg

(In [8788]) Committing lost change. Refs #2250

comment:5 Changed 10 years ago by Martyn Gigg

  • Status changed from reopened to accepted

comment:6 Changed 10 years ago by Martyn Gigg

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

comment:7 Changed 10 years ago by Michael Whitty

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

comment:8 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

nice little feature.

comment:9 Changed 10 years ago by Michael Whitty

I have updated the MantidPyFramework page on the wiki with some details on these features

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3097

Note: See TracTickets for help on using tickets.