Re: [petsc-dev] Example cleanup
10 Feb
2013
10 Feb
'13
9:17 a.m.
On Sun, Feb 10, 2013 at 9:09 AM, Matthew Knepley <[email protected]> wrote:
Don't disagree with any of your reasons, however, there is very little work wasted here. Most of the coding is adding new methods, hooking up Python, etc. and not writing the two lines for output. Thus, adding JSON later will be all new work, and will invalid hardly anything. This is modularity :)
Sounds good, though I don't understand "hooking up Python". Are you doing the validation itself in C or Python? If the latter, then just write JSON (no library needed, basically identical to python dict and array notation) and parse it using the Python standard library: import json python_dict = json.load(open('the-file.json'))
4933
Age (days ago)
4933
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jed Brown