You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!python
a=LoadSNSEventNexus(Filename="/SNS/PG3/IPTS-1582/0/1879/NeXus/PG3_1879_event.nxs", OutputWorkspace="PG3_1879")
a=a.workspace()
b = a.getRun()
c = b["proton_charge"]
d = c.getStatistics()
print d.mean
Which prints in the script output
------------------------------------------------------------------------ - - -
Wed Dec 15 16:39:19 2010: Script execution started.
------------------------------------------------------------------------ - - -
15289841.846
Traceback (most recent call last):
File "`<string>`", line 44, in _ScopeInspector_GetFunctionAttributes
TypeError: No to_python (by-value) converter found for C++ type: std::vector`<Mantid::Kernel::DateAndTime, std::allocator<Mantid::Kernel::DateAndTime>` >
------------------------------------------------------------------------ - - -
Wed Dec 15 16:39:20 2010: Script execution completed successfully.
------------------------------------------------------------------------ - - -
The fix appears to be exposing vectorMantid::Kernel::DateAndTime`` to python so mantid's python window knows what to do with it.
The text was updated successfully, but these errors were encountered:
In order to reproduce the error:
Which prints in the script output
The fix appears to be exposing
vector
Mantid::Kernel::DateAndTime`` to python so mantid's python window knows what to do with it.The text was updated successfully, but these errors were encountered: