Generally, algorithms should test whether the user has requested that the output workspace be the same as the input one via the pointer, not the name, as when called as a sub-algorithm the name may not be there. I recently fixed (http://trac.mantidproject.org/mantid/ticket/5860) SaveNexus, which was doing it wrong, and thought I'd look for other instances.
A search on ''getPropertyValue("InputWorkspace'' in algorithm source code finds the following. Not all these instances are necessarily incorrect, but I'm pretty sure some will be:
Original Reporter: Russell Taylor
Generally, algorithms should test whether the user has requested that the output workspace be the same as the input one via the pointer, not the name, as when called as a sub-algorithm the name may not be there. I recently fixed (http://trac.mantidproject.org/mantid/ticket/5860) SaveNexus, which was doing it wrong, and thought I'd look for other instances.
A search on ''getPropertyValue("InputWorkspace'' in algorithm source code finds the following. Not all these instances are necessarily incorrect, but I'm pretty sure some will be: