gem/oq-engine — pull request #793 by larsbutler (2012-06-20 16:20:00+00:00)
Title: Job config parsing

Last piece for https://bugs.launchpad.net/openquake/+bug/994033

Pull request #789 needs to land first.

The major change here is the addition of engine2.py. engine2 is a lighter-weight version of engine, which delegates a bunch of the parameter conversion and handling to Django models, fields, and forms. (See also: db/models.py and db/fields.py.) Test coverage on engine2, models, and fields should be very close to 100%.

At some point, the current engine.py can be removed and replaced by a fully-implemented engine2.py (which will renamed, of course.)

Also, I added the `--run-hazard` command line option. For moment, we can't run a calculation, but you can do this: `$ bin/openquake --run-hazard=demos/simple_fault_demo_hazard/job.ini` This will just tell if the job configuration is valid or not.