gem / openquake-server

DEPRECATED. Please refer to https://github.com/gem/oq-engine
6 stars 1 forks source link

Generate config.gem #11

Closed larsbutler closed 13 years ago

larsbutler commented 13 years ago

Hi,

This branch adds the oqrunner/config_writer.py module. This module includes functionality for generating Classical PSHA config.gem files (support for Event-Based and Deterministic config files will be added later).

The spec is here: https://github.com/gem/openquake-server/issues/1

I apologize for the size of this branch. In all, the code changes are about 700 lines; the rest is test data (XML files).

Thanks, -Lars

al-maisan commented 13 years ago

For some reason this branch removes an existing unittest file (tests/mtapi_utils_unittests.py). Can you please have a look?

al-maisan commented 13 years ago

Also, could the "oqrunner" directory become "utils/oqrunner" please? We will likely add more such modules later in the course of refactoring etc.

al-maisan commented 13 years ago

Lars, have you tried running the OpenQuake engine using a generated config.gem file?

larsbutler commented 13 years ago

1) I renamed mtapi_utils_unittests.py to _unittest.py (singular). This is the naming convention we are following in the rest of the OQ test code.

2) Yep, I'll move it.

3) I will do that.

al-maisan commented 13 years ago

LGTM