<div dir="ltr">On Sun, Feb 10, 2013 at 9:49 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Sun, Feb 10, 2013 at 8:40 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra">The phrase "may as well" is very slippery. Python arrays are just [x, y, z], whereas JSON needs a library.</div>

<div class="gmail_extra">However, the format is is now way crucial to the scheme. I want to get the workflow up an running with</div>
<div class="gmail_extra">the simplest format. We will inevitably tweak it was we add tons of crap on top if it works.</div></blockquote></div><br></div>The syntax for plain arrays is identical. I was suggesting JSON to manage recursive data structures (nested solvers, perhaps monitoring different things). So it becomes a dict of arrays or a dict of dicts of arrays. Also, we could spit out -snes_view in machine-readable form, we could have nicer diagnostics on the GUI side. It is because of these extensions that I think it's worth starting with something that will extend gracefully rather than a hack that is only intended for arrays of numbers.</div>

</div>
</blockquote></div><br>Don't disagree with any of your reasons, however, there is very little work wasted here. Most of the coding</div><div class="gmail_extra">is adding new methods, hooking up Python, etc. and not writing the two lines for output. Thus, adding JSON</div>
<div class="gmail_extra">later will be all new work, and will invalid hardly anything. This is modularity :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">   Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>