Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions openquake/commands/mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import sys
import time
import shutil
import logging
import getpass
import cProfile
Expand Down Expand Up @@ -130,6 +131,10 @@ def from_file(fname, mosaic_dir, asce_dir, concurrent_jobs,
logctxs = engine.create_jobs(
allparams, loglevel, None, getpass.getuser(), None)
engine.run_jobs(logctxs, concurrent_jobs)
# oq mosaic run_site is used only in the tests: the exported files
# are not needed, except for testing that the export works
for model in models:
shutil.rmtree(os.path.join(asce_dir, model), ignore_errors=True)
out = []
count_errors = 0
asce = {}
Expand Down
Loading