swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Probes


From: Marcus G. Daniels
Subject: Re: Probes
Date: 10 Mar 2001 14:50:45 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PJ" == Paul E Johnson <address@hidden> writes:

PJ> If I understand the drift of our conversations about ways to save
PJ> data in Swarm and hdf5, my plan should be to create a new class
PJ> "Output" that would be full of public instance variables that have
PJ> the data I want saved.  Then putShallow would write the numbers.

One way to do it is to add instances of these classes to a list and
save the list using putShallow at some checkpoint.  The advantage of
that is that it loads easily into R as a table.  The disadvantage is
that you can potentially end-up with a large data structure in memory
before you save it (in Swarm).

Another way to do it is to save the single instances one at a time
with different names.  An advantage of that is that saving is fast
(random access), and there isn't a growing memory cost.  However, a
complication is that you need to write some R code to iterate over key
names (e.g. data1, data2, data3) and collect them into a vector for
analysis.

                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]