Ticket #6156 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Add setter methods to Python MatrixWorkspace api to set from a whole array

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.4
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Andrei Savici

Description

So that you can do this, rather than looping round the values in python

test_ws = WorkspaceFactory.create("Workspace2D", nvectors, xlength, ylength)
ws_index = 1
values = np.linspace(0,1,xlength)
test_ws.setX(ws_index, values)

Change History

comment:1 Changed 8 years ago by Martyn Gigg

  • Owner set to Martyn Gigg
  • Status changed from new to accepted

comment:2 Changed 8 years ago by Martyn Gigg

Set a numpy array for a spectrum in one go. Refs #6156

Changeset: e1ba46f17af296c1e2ae3414f0c3a94e0d0c7e6a

comment:3 Changed 8 years ago by Martyn Gigg

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

comment:4 Changed 8 years ago by Martyn Gigg

Set a numpy array for a spectrum in one go. Refs #6156

Changeset: e1ba46f17af296c1e2ae3414f0c3a94e0d0c7e6a

comment:5 Changed 8 years ago by Andrei Savici

  • Status changed from verify to verifying
  • Tester set to Andrei Savici

comment:6 Changed 8 years ago by Andrei Savici

  • Status changed from verifying to closed

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7002

Note: See TracTickets for help on using tickets.