Ticket #7000 (closed: fixed)
Python value of FunctionProperty.type
Reported by: | Peter Peterson | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | blocker | Milestone: | Release 2.5 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Gesner Passos |
Description
This currently returns "N5boost10shared_ptrIN6Mantid3API9IFunctionEEE" when it should return "Function".
Change History
comment:2 Changed 7 years ago by Martyn Gigg
We currently have a very ugly hack for the returned string where we need to add it to the known list in Property.cpp and I don't have a better fix for this at the moment.
comment:3 Changed 7 years ago by Martyn Gigg
Unmangle FunctionProperty type. Refs #7000
Changeset: 854369adeeabfdafbca829b3bcbb59b91aa84f28
comment:4 Changed 7 years ago by Martyn Gigg
Unmangle FunctionProperty type. Refs #7000
Changeset: 854369adeeabfdafbca829b3bcbb59b91aa84f28
comment:5 Changed 7 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
Branch: bugfix/7000_function_property_type_string
Tester: The following python should print "Function"
from mantid.api import FunctionProperty func = FunctionProperty("TestFunction") print func.type
comment:6 Changed 7 years ago by Gesner Passos
- Status changed from verify to verifying
- Tester set to Gesner Passos
comment:7 Changed 7 years ago by Gesner Passos
- Status changed from verifying to closed
It does print correctly, but the FunctionProperty may crash MantidPlot #7004. But, it is not directly related to this ticket. So, this passed.
comment:8 Changed 7 years ago by Martyn Gigg
Unmangle FunctionProperty type. Refs #7000
Changeset: 854369adeeabfdafbca829b3bcbb59b91aa84f28
comment:9 Changed 7 years ago by Martyn Gigg
Unmangle FunctionProperty type. Refs #7000
Changeset: 854369adeeabfdafbca829b3bcbb59b91aa84f28
comment:10 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 7846