Ticket #3693 (closed: duplicate)

Opened 9 years ago

Last modified 5 years ago

bug with algebra on workspace groups

Reported by: Jon Taylor Owned by: Nick Draper
Priority: major Milestone: Iteration 30
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Janik Zikovsky

Description

The script fails :

FileName="D:/data/cycle_11_2/POLREF00004711.raw" Load(Filename=FileName,OutputWorkspace="_Raw") ConvertUnits(InputWorkspace="_Raw",OutputWorkspace="_Raw",Target="Wavelength") NormaliseByCurrent(InputWorkspace="_Raw",OutputWorkspace="_D")

Io=CropWorkspace('_D','Io',StartWorkspaceIndex=2,EndWorkspaceIndex=2) I=CropWorkspace('_D','I',StartWorkspaceIndex=4)

I=mtdI?;Io=mtdIo? R=I/Io

Fails with error:

Python.ArgumentError on line 10: "Python argument types in

MantidPythonAPI._binary_op(WorkspaceGroup, WorkspaceGroup, str, str, bool, bool)

did not match C++ signature:

_binary_op(class boost::shared_ptr<class Mantid::API::MatrixWorkspace>, double, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, bool, bool) _binary_op(class boost::shared_ptr<class Mantid::API::MatrixWorkspace>, class boost::shared_ptr<class Mantid::API::MatrixWorkspace>, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >, bool, bool)" in file 'MantidFramework.py' at line 459

This is true for +,-,/,*, Divide(‘I’,’Io’,’R’), Divide(‘I’,’Io’,’R’,AllowDifferentNumberSpectra=True)

NOTE: algebra between wksp_groups and single value workspaces is successful in both python and the mantidplot GUI

Change History

comment:1 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 30 to Iteration 31

Bulk move of tickets to iteration 31 at the iteration 30 code freeze

comment:2 Changed 9 years ago by Nick Draper

  • Status changed from new to verify
  • Owner set to Nick Draper
  • Resolution set to duplicate

duplicate of #3695

comment:3 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 31 to Iteration 30

comment:4 Changed 9 years ago by Janik Zikovsky

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

comment:5 Changed 9 years ago by Janik Zikovsky

  • Status changed from verifying to closed

Dupe that was pushed back.

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4540

Note: See TracTickets for help on using tickets.