Browse Source

mole si: update run

pull/6/head
mmetz 2 months ago
parent
commit
bc1fb6523a
  1. 17
      src/si/module.py

17
src/si/module.py

@ -37,9 +37,14 @@ class SourceInversionModule(BaseModule):
force=False,
create_report=False):
conf = self.config.pointsource_config.get_config()
if not conf.run:
logger.info('Point source inversion skipped')
return
logger.info('running point source inversion ...')
conf = self.config.pointsource_config.get_config()
store = problem.get_parent()
conf.grond_config_fn = op.join(
@ -65,6 +70,7 @@ class SourceInversionModule(BaseModule):
inv.grond_config.dataset_config = dc
inv.run_full(force=force, create_report=create_report)
# TODO convert grond results to ewrica.sources
def run_ids_inversion(self):
logger.info('running IDS finite fault estimation')
@ -76,9 +82,14 @@ class SourceInversionModule(BaseModule):
force=False,
create_report=False):
conf = self.config.dynamic_rupture_config.get_config()
if not conf.run:
logger.info('Pseudo dynamic rupture inversion skipped')
return
logger.info('running pseudo dynamic ruputure inversion ...')
conf = self.config.dynamic_rupture_config.get_config()
store = problem.get_parent()
conf.grond_config_fn = op.join(
@ -124,7 +135,7 @@ class SourceInversionModule(BaseModule):
self.run_point_source_inversion(problem, *args, **kwargs)
self.run_dynamic_rupture_inversion()
self.run_dynamic_rupture_inversion(problem, *args, **kwargs)
self.run_ids_inversion()

Loading…
Cancel
Save