# Problem using \[soln-plugin-sampler\]

**URL:** <https://pyfr.discourse.group/t/problem-using-soln-plugin-sampler/103>\
**Category:** General\
**Created:** [26 February 2016 12:42 UTC](https://pyfr.discourse.group/t/problem-using-soln-plugin-sampler/103 "2016-02-26T12:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Holt](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Andrew\_Holt](https://pyfr.discourse.group/u/Andrew_Holt)\
**Post date:** [26 February 2016 12:42 UTC](https://pyfr.discourse.group/t/problem-using-soln-plugin-sampler/103/1 "2016-02-26T12:42:30Z")

</div>

Hi,  
I’m trying to use [soln-plugin-sampler], but keep getting the following error when I run PyFR:

```auto
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyfr-1.3.0-py3.5.egg/pyfr/plugins/sampler.py", line 13, in <listcomp>

ValueError: operands could not be broadcast together with shapes (4,1633,2) (3,)

```

It seems to be to do with the coodinates I’m inserting into ‘samp-pts = [(x, y, z)]’, but I get the error with any point(s) combinations I try. How can I get round this? Please find my .ini and .msh files attached for reference.

Thank you

Andrew Holt

[test4.ini](https://pyfr.discourse.group/uploads/short-url/lqCpFEt0Anj7AqcLynUTPQ5sCXT.ini) (1.33 KB)

[test4.msh](https://pyfr.discourse.group/uploads/short-url/bqqvx5yxUB9mAslN1HYxdTi42hH.msh) (369 KB)

---

<div class="post-metadata">

**Author:** ![Loppi\_Niki](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@Loppi\_Niki](https://pyfr.discourse.group/u/Loppi_Niki)\
**Post date:** [26 February 2016 14:26 UTC](https://pyfr.discourse.group/t/problem-using-soln-plugin-sampler/103/2 "2016-02-26T14:26:04Z")

</div>

Hi Andrew,

I think you are defining all three coordinates with z=0.0, although you are running a two dimensional case.  
Not passing the third coordinate ‘samp-pts = [(x, y)]’ should work.

Regards,  
Niki
