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.
read
(calc_id, username=None)[source]¶ Parameters: - calc_id – a calculation ID
- username – if given, restrict the search to the user’s calculations
Returns: the associated DataStore instance
-
openquake.commands.engine.
run_job
(job_ini, log_level='info', log_file=None, exports='', username='jenkins', **kw)[source]¶ Run a job using the specified config file and other options.
Parameters: - job_ini (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.
- username – Name of the user running the job
- kw – Extra parameters like hazard_calculation_id and calculation_mode
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¶
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
-