Skip to content

开始扫描后报错

[2024-11-29 19:59:03,360][axolotl.automation.scan.core][INFO]: Start Scan Task :SOUR1:POW? :SOUR1:POW? :SOUR1:POW? :SOUR1:POW? :SOUR1:POW? :SENS1:FREQ:DATA? :CALC1:DATA:FDAT? :CALC1:DATA:FDAT? [2024-11-29 19:59:03,595][axolotl.automation.scan.default_plugins.data_recording][DEBUG]: Save point data [2024-11-29 19:59:03,596][axolotl.eventbus.ScanEventBus][ERROR]: Event listener <function save_point_data at 0x000002428562EAC0> error. Traceback (most recent call last): File "D:\qt-app\Axolotl\axolotl\util\event.py", line 48, in fire_event listener(event) ~~~~~~~~^^^^^^^ File "D:\qt-app\Axolotl\axolotl\automation\scan\default_plugins\data_recording.py", line 110, in save_point_data data = np.concatenate((data, scan_data.data)) ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 3 dimension(s) [2024-11-29 19:59:03,597][axolotl.automation.scan.default_plugins.data_recording][DEBUG]: xs=[-50.] [2024-11-29 19:59:03,597][axolotl.automation.scan.default_plugins.data_recording][DEBUG]: yss=[[[[ 1.00000000e+05]]

1.17811164e+00

-1.65904049e+02]

[[[ 2.13497500e+07]]

7.23844434e-01

-2.71931839e+02]

[[[ 4.25995000e+07]]

3.53229955e-01

-2.03983063e+02]

...

[[[ 8.45750050e+09]]

1.47965878e+00

1.29696502e+02]

[[[ 8.47875025e+09]]

1.46052776e+00

1.97014038e+02]

[[[ 8.50000000e+09]]

5.44356145e-01

2.29427891e+02]] :SOUR1:POW? [2024-11-29 19:59:03,609][axolotl.automation.scan.default_plugins.data_recording][DEBUG]: ys[0]=[[[ 1.00000000e+05]]

1.17811164e+00

-1.65904049e+02] [2024-11-29 19:59:03,610][axolotl.eventbus.ScanEventBus][ERROR]: Event listener <axolotl.automation.scan.default_plugins.data_recording.DrawLine object at 0x00000242856381A0> error. Traceback (most recent call last): File "D:\qt-app\Axolotl\axolotl\util\event.py", line 48, in fire_event listener(event) ~~~~~~~~^^^^^^^ File "D:\qt-app\Axolotl\axolotl\automation\scan\default_plugins\data_recording.py", line 186, in call self.__point_data_draw(event) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^ File "D:\qt-app\Axolotl\axolotl\automation\scan\default_plugins\data_recording.py", line 211, in __point_data_draw ax.plot(xs, ys, **self.plot_config) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\Quantum\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\axes_axes.py", line 1779, in plot lines = [*self._get_lines(self, *args, data=data, **kwargs)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\Quantum\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\axes_base.py", line 296, in call yield from self._plot_args( ~~~~~~~~~~~~~~~^ axes, this, kwargs, ambiguous_fmt_datakey=ambiguous_fmt_datakey) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\Quantum\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\axes_base.py", line 486, in _plot_args raise ValueError(f"x and y must have same first dimension, but " f"have shapes {x.shape} and {y.shape}") ValueError: x and y must have same first dimension, but have shapes (1,) and (3, 1, 1)

Edited by 原 康