Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue about "ukdale.h5" #969

Open
edsml-jz2321 opened this issue Aug 4, 2023 · 0 comments
Open

issue about "ukdale.h5" #969

edsml-jz2321 opened this issue Aug 4, 2023 · 0 comments

Comments

@edsml-jz2321
Copy link

edsml-jz2321 commented Aug 4, 2023

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant