Ticket #1556 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Read access to Workspace data through python doesn't work on Windows

Reported by: Mathieu Doucet Owned by: Martyn Gigg
Priority: critical Milestone: Iteration 25
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description

The following should work but doesn't. It works on Linux.

Load("../../../Test/Data/SANS2D/BioSANS_test_data.xml", "test")
assert(not mtd["test"].dataY(0)[0] == 1112)
mtd["test"].dataY(0)[0] = 1112
assert(mtd["test"].dataY(0)[0] == 1112)

You may need to replace the file path in the example above to something that works for your system.

Change History

comment:1 Changed 10 years ago by Mathieu Doucet

Works when numpy is installed.

comment:2 Changed 10 years ago by Martyn Gigg

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

comment:3 Changed 10 years ago by Martyn Gigg

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

(In [6047]) Revert changes to Python dataX,dataY,dataE accessors that break if numpy is not insalled. Fixes #1556

comment:4 Changed 10 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Component set to Mantid
  • Tester set to Anders Markvardsen

comment:5 Changed 10 years ago by Anders Markvardsen

  • Status changed from verifying to closed

Although note that for loading BioSANS_test_data.xml need to use LoadSpice2D instead of Load!

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2403

Note: See TracTickets for help on using tickets.