Ticket #4485 (closed: invalid)
Algorithms reporting errors with new python
Reported by: | Andrei Savici | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | blocker | Milestone: | Release 2.0 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Peter Peterson |
Description
Example 1:
WS_Name='CNCS_7860_event' Load(Filename='CNCS_7860_event.nxs',OutputWorkspace=WS_Name) AddSampleLog(Workspace=WS_Name,LogName='Ei',LogText='3',LogType='Number')
The sample log is added, but the python script reports an error and it won't go further This is what I get if I run the algorithm from Mantidplot Execute
Error storing output workspace in AnalysisDataService Error in execution of algorithm AddSampleLog: Python error: No to_python (by-value) converter found for C++ type: boost::shared_ptr<Mantid::API::IEventWorkspace> at line 1336 in '/home/andrei/mantid/build/bin/MantidFramework.py' caused by line 1318 in '/home/andrei/mantid/build/bin/MantidFramework.py'
Example2: I get the same type of error with rebin.
Error storing output workspace in AnalysisDataService Error in execution of algorithm Rebin: Python error: No to_python (by-value) converter found for C++ type: boost::shared_ptr<Mantid::API::IEventWorkspace> at line 1336 in '/home/andrei/mantid/build/bin/MantidFramework.py' caused by line 1318 in '/home/andrei/mantid/build/bin/MantidFramework.py'
Note: this seems to happen only if OutputWorkspace=InputWorkspace
Change History
comment:1 Changed 9 years ago by Martyn Gigg
- Owner set to Martyn Gigg
- Status changed from new to accepted
comment:2 Changed 9 years ago by Martyn Gigg
Andrei, thanks for giving me some test scripts. I think they have been fixed by some changes I have made today. The scripts work for me at least.
Could you let me know if you are still having problems and if not I'll close the ticket.
comment:3 Changed 9 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to invalid
Andrei has confirmed that these errors no longer occur. The fixes were part and parcel of #4226.
comment:4 Changed 9 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
Note: See
TracTickets for help on using
tickets.