Re: [SQLObject] storing objects that have matrices as attributes
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ryan K. <rya...@co...> - 2005-05-13 13:12:25
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <div class="moz-text-flowed" style="font-family: -moz-fixed; font-size: 12px;" lang="x-western">Maybe an example would make this clearer. What if I want to store a collection of objects with the following properties: <br> entry1.input='a1' <br> entry1.output='j2' <br> entry1.datafile=['file1','file2','file3'] <br> entry1.data1=[1.2,1.47,3.56,....] <br> entry1.data2=[-1.5,-19.5,35.5,....] <br> <br> And what if data1 and data2 are Numeric arrays/matrices (or from numarray)? Can SQLObject store a collection of such objects? <br> <br> Thanks, <br> <br> Ryan <br> <br> <br> Ryan Krauss wrote: <br> <br> <blockquote type="cite">I need to store and retrieve a collection of test results where each test would have some typical properties like the date it was run and other scalar desriptors. But the main data from the test will be vectors or matrices of data the I will later plot. Each vector or matrix might have 20000 rows of floating point numbers and there may be 10 or more of these test results that I want to store in a group. Can SQLOjbect handle storing a matrix instance? I am quite new to SQL as well as SQLObject, so I don't know if the matrices could somehow be seperate tables or something. <br> <br> I started looking into hdf5 as a way to store this kind of data, but I think it is more complicated than I need. <br> <br> Any help would be appreciated. <br> <br> Ryan <br> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by Oracle Space Sweepstakes <br> Want to be the first software developer in space? <br> Enter now for the Oracle Space Sweepstakes! <br> <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click">http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click</a> <br> _______________________________________________ <br> sqlobject-discuss mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:sql...@li...">sql...@li...</a> <br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss">https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss</a> <br> <br> </blockquote> <br> <br> </div> <br> <br> <br> Ryan Krauss wrote: <blockquote cite="mid...@co..." type="cite">I need to store and retrieve a collection of test results where each test would have some typical properties like the date it was run and other scalar desriptors. But the main data from the test will be vectors or matrices of data the I will later plot. Each vector or matrix might have 20000 rows of floating point numbers and there may be 10 or more of these test results that I want to store in a group. Can SQLOjbect handle storing a matrix instance? I am quite new to SQL as well as SQLObject, so I don't know if the matrices could somehow be seperate tables or something. <br> <br> I started looking into hdf5 as a way to store this kind of data, but I think it is more complicated than I need. <br> <br> Any help would be appreciated. <br> <br> Ryan <br> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by Oracle Space Sweepstakes <br> Want to be the first software developer in space? <br> Enter now for the Oracle Space Sweepstakes! <br> <a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click">http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click</a> <br> _______________________________________________ <br> sqlobject-discuss mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:sql...@li...">sql...@li...</a> <br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss">https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss</a> <br> <br> </blockquote> <br> </body> </html> |