[SciPy-Dev] ndimage.labeled_comprehension default parameter

Angus McMorland amcmorl@gmail....
Sun Jul 4 13:36:35 CDT 2010

On 4 July 2010 14:02, Thouis (Ray) Jones <thouis@broadinstitute.org> wrote:
> (Third try, hopefully from the correct email address this time...)
> On Sat, Jul 3, 2010 at 17:04, Angus McMorland <amcmorl@gmail.com> wrote:
>> I'm trying to write the docstring for ndimage.labeled_comprehension.
>> Can anyone tell me what the `default` parameter does?
>> I can't see a case where it isn't over-written by the do_map internal function.
> The intent was for that value to be returned for any values in
> "labels" that don't actually occur in "input", but it might be a bug.
> I'll try to verify it early this week (my home machine doesn't have an
> up-to-date install of scipy).

Thanks for the pointer- I've checked it here, and the routine works as
advertised. (Well, actually, I'm presuming you mean when a value of
`index` does not exist in `labels`.) Supplying 'non-occurring' labels
was not a case I had tried.



> Best,
> Ray Jones
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev

AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh

More information about the SciPy-Dev mailing list