[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Serialization using HDF5Archiver
From: |
Paul Johnson |
Subject: |
Re: Serialization using HDF5Archiver |
Date: |
Fri, 22 Sep 2000 11:00:54 -0500 |
Norberto Eiji Nawa wrote:
>
...
>
> [outputDataHDF5Archiver putShallow: "tmpNode" object: tmpNode];
> [outputDataHDF5Archiver sync];
>
> ...
>
> As one would expect, in the end of the run my archiver file will
> contain only the last sampled values (at least that is what I
> understand when making h5dump archiver.hdf. Using this framework, is
> there any simple way to store the whole series?
>
> TIA
>
> Eiji
I think the problem is you are using the same key value for each time
you put in the information. That overwrites the data on top of
tmpnode. I think you need to make the key depend on swarm time, you
know like
char tmpname[40];
sprintf( tmpname,"tmpNode%d",getCurrentTime());
[outputDataHDF5Archiver putShallow: tmpname object: tmpNode];
I know I've seen a comment in this list that points in this direction,
but I can't find it now.
I can't tell you how to use the data with keys like this, though...
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.