You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use "ukdale.h5" to replace "redd.h5" in "nilmtk-master/docs/outdated/NILM_Workshop_2014_demo.ipynb", I get some error when I execute the code below, does anyone know how to solve it? Thanks!
ValueError: invalid combination of [values_axes] on appending data [name->values_block_0,cname->values_block_0,dtype->float32,kind->float,shape->(1, 4320)] vs current table [name->values_block_0,cname->values_block_0,dtype->b'float32',kind->float,shape->None]
The text was updated successfully, but these errors were encountered:
When I use "ukdale.h5" to replace "redd.h5" in "nilmtk-master/docs/outdated/NILM_Workshop_2014_demo.ipynb", I get some error when I execute the code below, does anyone know how to solve it? Thanks!
##my code
##Disaggregate
disag_filename = join(data_dir, 'ukdale.h5')
output = HDFDataStore(disag_filename, 'r')
co.disaggregate(elec.mains(), output)
output.close()
##my print
ValueError Traceback (most recent call last)
in
3 disag_filename = join(data_dir, 'ukdale.h5')
4 output = HDFDataStore(disag_filename, 'r')
----> 5 co.disaggregate(elec.mains(), output)
6 output.close()
~/miniconda3/envs/NILM/lib/python3.6/site-packages/nilmtk/legacy/disaggregate/combinatorial_optimisation.py in disaggregate(self, mains, output_datastore, **load_kwargs)
164 columns=cols)
165 key = '{}/elec/meter{}'.format(building_path, meter_instance)
--> 166 output_datastore.append(key, df)
167
168 # Copy mains data to disag output
~/miniconda3/envs/NILM/lib/python3.6/site-packages/nilmtk/docinherit.py in f(*args, **kwargs)
51 def f(*args, **kwargs):
52 if obj:
---> 53 return self.mthd(obj, *args, **kwargs)
54 else:
55 return self.mthd(*args, **kwargs)
~/miniconda3/envs/NILM/lib/python3.6/site-packages/nilmtk/datastore/hdfdatastore.py in append(self, key, value)
162 data in the table, so be careful.
163 """
...
-> 3309 f"invalid combination of [{c}] on appending data "
3310 f"[{sax}] vs current table [{oax}]"
3311 )
ValueError: invalid combination of [values_axes] on appending data [name->values_block_0,cname->values_block_0,dtype->float32,kind->float,shape->(1, 4320)] vs current table [name->values_block_0,cname->values_block_0,dtype->b'float32',kind->float,shape->None]
The text was updated successfully, but these errors were encountered: