Giter Club home page Giter Club logo

bayesim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bayesim's Issues

NoSuchNodeError: group ``/`` does not have a child named ``//data``

I am getting an error in ideal_diode when saving in "dd.io.save('obs_data.h5',data)", see error below. When using the obs_data.h5 file supplied with example, the same error is generated further by "m.run()". So I cannot run an ideal_diode example. I am running Python 3 in Jupiter installed with Anaconda3 on Windows 7 enterprise.
Error:
NoSuchNodeError Traceback (most recent call last)
C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\pytables.py in get_node(self, key)
1159 key = '/' + key
-> 1160 return self._handle.get_node(self.root, key)
1161 except _table_mod.exceptions.NoSuchNodeError:

C:\ProgramData\Anaconda3\lib\site-packages\tables\file.py in get_node(self, where, name, classname)
1643 nodepath = join_path(basepath, name or '') or '/'
-> 1644 node = where._v_file.get_node(nodepath)
1645 elif isinstance(where, (six.string_types, numpy.str
)):

C:\ProgramData\Anaconda3\lib\site-packages\tables\file.py in _get_node(self, nodepath)
1598
-> 1599 node = self._node_manager.get_node(nodepath)
1600 assert node is not None, "unable to instantiate node %s" % nodepath

C:\ProgramData\Anaconda3\lib\site-packages\tables\file.py in get_node(self, key)
436 if self.node_factory:
--> 437 node = self.node_factory(key)
438 self.cache_node(node, key)

C:\ProgramData\Anaconda3\lib\site-packages\tables\group.py in _g_load_child(self, childname)
1180 # Is the node a group or a leaf?
-> 1181 node_type = self._g_check_has_child(childname)
1182

C:\ProgramData\Anaconda3\lib\site-packages\tables\group.py in _g_check_has_child(self, name)
397 "group %s does not have a child named %s"
--> 398 % (self._v_pathname, name))
399 return node_type

NoSuchNodeError: group / does not have a child named //data

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last)
in
33 # save them to HDF5
34 data = pd.DataFrame.from_records(data=data,columns=['V','T','J','uncertainty'])
---> 35 dd.io.save('obs_data.h5',data)
36
37 # these next few lines are for generating the plot

C:\ProgramData\Anaconda3\lib\site-packages\deepdish\io\hdf5io.py in save(path, data, compression)
594 else:
595 _save_level(h5file, group, data, name='data',
--> 596 filters=filters, idtable=idtable)
597 # Mark this to automatically unpack when loaded
598 group._v_attrs[DEEPDISH_IO_UNPACK] = True

C:\ProgramData\Anaconda3\lib\site-packages\deepdish\io\hdf5io.py in _save_level(handler, group, level, name, filters, idtable)
251 elif _pandas and isinstance(level, (pd.DataFrame, pd.Series, pd.Panel)):
252 store = _HDFStoreWithHandle(handler)
--> 253 store.put(group._v_pathname + '/' + name, level)
254
255 elif isinstance(level, (sparse.dok_matrix,

C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\pytables.py in put(self, key, value, format, append, **kwargs)
887 format = get_option("io.hdf.default_format") or 'fixed'
888 kwargs = self._validate_format(format, kwargs)
--> 889 self._write_to_group(key, value, append=append, **kwargs)
890
891 def remove(self, key, where=None, start=None, stop=None):

C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\pytables.py in _write_to_group(self, key, value, format, index, append, complib, encoding, **kwargs)
1365 def _write_to_group(self, key, value, format, index=True, append=False,
1366 complib=None, encoding=None, **kwargs):
-> 1367 group = self.get_node(key)
1368
1369 # remove the node if we are not appending

C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\pytables.py in get_node(self, key)
1159 key = '/' + key
1160 return self._handle.get_node(self.root, key)
-> 1161 except _table_mod.exceptions.NoSuchNodeError:
1162 return None
1163

AttributeError: 'NoneType' object has no attribute 'exceptions'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.