Giter VIP home page Giter VIP logo

Comments (2)

huard avatar huard commented on August 26, 2024

Hi Anand,

I see two solutions here.

The 10000 limit is probably defined by a parameter somewhere in
pytables. I looked quickly in the pytables manual but did not find it,
but I'm relatively confident it is somewhere. Maybe worth asking on
their ML.

If the 10000 limit cannot be changed or if it causes performance
problem, then we'll need to find a way to store these
observed_stochastics elsewhere in the group, for instance in an array.
We'll need a try else statement both in the initialize function and in
Database.init to load the objects back in memory no matter whether
they are stored as table attributes or stand-alone arrays.

David

On Tue, May 17, 2011 at 8:41 AM, apatil
[email protected]
wrote:

This line: https://github.com/pymc-devs/pymc/blob/master/pymc/database/hdf5.py#L416 causes the following error if an observed stochastic has length of around 10k.

HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
 #000: H5Adeprec.c line 165 in H5Acreate1(): unable to create attribute
   major: Attribute
   minor: Unable to initialize object
 #1: H5A.c line 492 in H5A_create(): unable to create attribute in object header
   major: Attribute
   minor: Unable to insert object
 #2: H5Oattribute.c line 346 in H5O_attr_create(): unable to create new attribute in header
   major: Attribute
   minor: Unable to insert object
 #3: H5Omessage.c line 224 in H5O_msg_append_real(): unable to create new message
   major: Object header
   minor: No space available for allocation
 #4: H5Omessage.c line 1925 in H5O_msg_alloc(): unable to allocate space for message
   major: Object header
   minor: Unable to initialize object
 #5: H5Oalloc.c line 1135 in H5O_alloc(): object header message is too large
   major: Object header
   minor: Unable to initialize object
HDF5-DIAG: Error detected in HDF5 (1.8.5-patch1) thread 0:
 #000: H5A.c line 916 in H5Awrite(): not an attribute
   major: Invalid arguments to routine
   minor: Inappropriate type

Reply to this email directly or view it on GitHub:
#41

from pymc.

scopatz avatar scopatz commented on August 26, 2024

This is not a PyTables issue, it is an HDF5 one. HDF5 limits the size of data type headers to 64k, which in practice is about ~1000 columns. I am currently looking for a workaround myself...

from pymc.

Related Issues (20)

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.