I am trying to run your routine in order to obtain the position and radius of a given clump.
I sucessfulled run the example. However when I try to run in my data I start to get problems on the step "# data as a NumPy array (Don't run this twice)"
When I run this part, it just return a floa and not a ndarray as happened in your example.
Is there any specific condition for the image input data? such as the x and y axis in the image must have the same number of pixels?
In your example the orion image is 100x100 pixels. My image is 21x30 pixels, is it a issue?