# Issue with SetSpacing

**URL:** <https://discourse.itk.org/t/issue-with-setspacing/4011>\
**Category:** Community\
**Created:** [April 5, 2021, 7:05pm UTC](https://discourse.itk.org/t/issue-with-setspacing/4011 "2021-04-05T19:05:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archsci](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@archsci](https://discourse.itk.org/u/archsci)\
**Post date:** [April 5, 2021, 7:05pm UTC](https://discourse.itk.org/t/issue-with-setspacing/4011/1 "2021-04-05T19:05:33Z")

</div>

Hello,

I am trying to create an itk image from numpy array. I have,

```auto
itkImg = itk.GetImageFromArray(array)
itkImg.SetOrigin([1.0, 1.0, 1.0])
itkImg.SetSpacing([1.0, 2.0, 2.0])

```

After creating the image, I want to change the origin and spacing of itkImg. I was able to change the origin but I am not able to change the spacing. When I call SetSpacing, the jupyter notebook kernal crashes.

Any suggestions?

Thanks,  
Archana

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [April 5, 2021, 8:00pm UTC](https://discourse.itk.org/t/issue-with-setspacing/4011/2 "2021-04-05T20:00:27Z")

</div>

Number one thing to try is using the latest release. ITK 5.2.0 was tagged last week, make sure you are using it. If this does not resolve the issue, what versions of other tools are you using (jupyter etc)?
