Ticket #2446 (closed: fixed)
IkedaCarpenterPV function evaluation
Reported by: | Vickie Lynch | Owned by: | Anders Markvardsen |
---|---|---|---|
Priority: | major | Milestone: | Iteration 28 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Vickie Lynch |
Description
When I try to evaluate the function optimized by Fit using IkedaCarpenterPV, I get a segfault. I traced it to this line where m_workspace and m_workspaceIndex are undefined in IkedaCarpenterPV.cpp.
convertValue(m_waveLength, wavelength, m_workspace, m_workspaceIndex);
Change History
comment:4 Changed 10 years ago by Anders Markvardsen
(In [10302]) When workspace not set default wavelength in IkedaCarpenter (IC) to one.
Introduced a number places where if the workspace or instrument of the workspace is not set properly that warnings are displayed.
Removed now obsolete constant wavelength option in IC code.
Re-enable the IC test and further improve it.
Note workspace of fitting function will normally automatically be set. But for now one exception is when using
IFitFunction *out = FunctionFactory::Instance().createInitialized(alg2.getPropertyValue("Function")); IPeakFunction *pk = dynamic_cast<IPeakFunction *>(out);
To set the workspace for pk add a line like:
pk->setMatrixWorkspace(ws2D, 0,-1,-1);
re #2446
comment:8 Changed 10 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Anders Markvardsen
comment:10 Changed 9 years ago by Anders Markvardsen
- Status changed from accepted to verify
- Resolution set to fixed
Believe this one fixed...
comment:11 Changed 9 years ago by Vickie Lynch
- Status changed from verify to verifying
- Tester set to Vickie Lynch
comment:12 Changed 9 years ago by Vickie Lynch
- Status changed from verifying to closed
Works with my peak integration. Thanks!
comment:13 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 3293
The last line of this example coding from SingleCrystalTOFIntegration is where I get a segfault: