loneharoon / GSP_energy_disaggregator

This contains the energy disaggregation code based on Graph Signal Processing approach
https://ieeexplore.ieee.org/document/7457610/
26 stars 19 forks source link

ValueError: All arrays must be of the same length #12

Open qinxiaopang opened 6 months ago

qinxiaopang commented 6 months ago

File "gsp_disaggregator.py", line 71, in power_series, appliance_signatures = gsp.generate_appliance_powerseries(appliance_pairs, delta_p) File "/home/qzx/nilm/gsp_support.py", line 210, in generate_appliance_powerseries power_series[i] = pd.DataFrame({'timestamp':timeseq,'power':powerseq}) File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 709, in init mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager) File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 481, in dict_to_mgr return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy) File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 115, in arrays_to_mgr index = _extract_index(arrays) File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 655, in _extract_index raise ValueError("All arrays must be of the same length") ValueError: All arrays must be of the same length