Hello,
I have generated our cameras for ITER, and I am trying to calculate the signal using calc_signal()
Even when using a dummy synthetic emission function such as:
def ff(Pts, t=None): return np.zeros(Pts.shape[1])+1
I still get the following error:
c.calc_signal(ff, t=None) Traceback (most recent call last): File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-110-851451bbde5c>", line 1, in <module> c.calc_signal(ff, t=None) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/geom/_core.py", line 4227, in calc_signal osig = tfd.DataCam1D(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 160, in __init__ super(DataAbstract,self).__init__(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/utils.py", line 719, in __init__ self._init(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 610, in _init self._set_ddataRef(**kwddataRef) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 631, in _set_ddataRef lout = self._checkformat_inputs_ddataRef(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 276, in _checkformat_inputs_ddataRef assert ndim in [2,3] AssertionError
The camera seems otherwise fine, I can plot its LOS on the vessel etc. Any ideas?
Hello,
I have generated our cameras for ITER, and I am trying to calculate the signal using calc_signal()
Even when using a dummy synthetic emission function such as:
def ff(Pts, t=None): return np.zeros(Pts.shape[1])+1I still get the following error:
c.calc_signal(ff, t=None) Traceback (most recent call last): File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-110-851451bbde5c>", line 1, in <module> c.calc_signal(ff, t=None) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/geom/_core.py", line 4227, in calc_signal osig = tfd.DataCam1D(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 160, in __init__ super(DataAbstract,self).__init__(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/utils.py", line 719, in __init__ self._init(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 610, in _init self._set_ddataRef(**kwddataRef) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 631, in _set_ddataRef lout = self._checkformat_inputs_ddataRef(**kwdargs) File "/home/jhare/.conda/envs/tofu/lib/python3.6/site-packages/tofu/data/_core.py", line 276, in _checkformat_inputs_ddataRef assert ndim in [2,3] AssertionErrorThe camera seems otherwise fine, I can plot its LOS on the vessel etc. Any ideas?