openquake.commands package¶
db command¶
dbserver command¶
engine command¶
-
openquake.commands.engine.del_calculation(job_id, confirmed=False)[source]¶ Delete a calculation and all associated outputs.
-
openquake.commands.engine.run_job(cfg_file, log_level='info', log_file=None, exports='', hazard_calculation_id=None, **kw)[source]¶ Run a job using the specified config file and other options.
Parameters: - cfg_file (str) – Path to calculation config (INI-style) files.
- log_level (str) – ‘debug’, ‘info’, ‘warn’, ‘error’, or ‘critical’
- log_file (str) – Path to log file.
- exports – A comma-separated string of export types requested by the user.
- hazard_calculation_id – ID of the previous calculation or None
export command¶
from_shapefile command¶
info command¶
-
openquake.commands.info.do_build_reports(directory)[source]¶ Walk the directory and builds pre-calculation reports for all the job.ini files found.
plot command¶
-
openquake.commands.plot.make_figure(indices, n, imtls, spec_curves, curves=(), label='')[source]¶ Parameters: - indices – the indices of the sites under analysis
- n – the total number of sites
- imtls – ordered dictionary with the IMTs and levels
- spec_curves – a dictionary of curves IMT -> array(n_sites, n_levels)
- curves – a dictionary of dictionaries IMT -> array
- label – the label associated to spec_curves
plot_sites command¶
plot_uhs command¶
-
openquake.commands.plot_uhs.make_figure(indices, n_sites, imtls, poes, pmaps)[source]¶ Parameters: - indices – the indices of the sites under analysis
- n_sites – total number of sites
- imtls – DictArray with the IMTs and levels
- poes – PoEs used to compute the hazard maps
- pmaps – a list of probability maps per realization
purge command¶
reduce command¶
reset command¶
run command¶
-
class
openquake.commands.run.PStatData(ncalls, tottime, percall, cumtime, percall2, path)¶ Bases:
tuple-
cumtime¶ Alias for field number 3
-
ncalls¶ Alias for field number 0
-
path¶ Alias for field number 5
-
percall¶ Alias for field number 2
-
percall2¶ Alias for field number 4
-
tottime¶ Alias for field number 1
-