Sep-13-2022, 04:29 PM
Do you mean "sensor_04"? The error message says and the posted code say "sensor_04".
If it works for some sensors and not for others, I would examine how this differs for different sensors.
To debug, fund two examples; one that runs the Dickey-Fuller test and one that fails, Look at the shape of the array you are passing to the test. How do they differ. If you still have problems after that, report back with what you discovered.
If it works for some sensors and not for others, I would examine how this differs for different sensors.
image_data_org['sensor_0X']If Dickey-Fuller works for sensor_2 and fails for sensor_4, the value in image_data_org[] will differ. It sounds like it will differ structurally. The error message says the program failed because it expects image_data_org['sensor_04'] to be a 1D array but it is really a 2D array.
To debug, fund two examples; one that runs the Dickey-Fuller test and one that fails, Look at the shape of the array you are passing to the test. How do they differ. If you still have problems after that, report back with what you discovered.