Reciprocal space

Sure don't worry I'll not change anything. However, I have done some changes to this after some comments. But the original one is in the nsls2/master.


On Aug 16, 2014, at 10:54 AM, "Eric Dill" <notifications@github.com<mailto:notifications@github.com>> wrote:


In nsls2/recip.py:

>      """
>
> -    if ROI is not None and len(ROI) == 4:
> -        # slice the image based on the desired ROI
> -        img=img[ROI[0]:ROI[1], ROI[2]:ROI[3]]
> +    if ROI is not None:
> +        if len(ROI) == 4:
> +            # slice the image based on the desired ROI
> +            img = np.meshgrid(img[ROI[0]:ROI[1]], img[ROI[2]:ROI[3]],
> +                              sparse=True)
> +        else:
> +            raise ValueError(" ROI has to be 4 element array : len(ROI) = 4")
> +    else:


Same as above. Leave this function alone as it is my legacy code. I will deal with it in a different PR

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/NSLS2/pull/59/files#r16325118>.