Skip to content
Snippets Groups Projects
Commit ec4879e0 authored by Stefano Borini's avatar Stefano Borini
Browse files

Added option to force_bdss app

parent 90b361d5
No related branches found
No related tags found
1 merge request!162Provide ability to run a single data source and check its results [WIP]
......@@ -10,13 +10,19 @@ push_exception_handler(reraise_exceptions=True)
@click.command()
@click.option("--evaluate", is_flag=True)
@click.option("--evaluate",
is_flag=True,
help="Runs the evaluation for a single point.")
@click.option("--run-datasource",
type=click.STRING,
help="If specified, runs only the specified datasource "
"interactively. This is useful for debugging.")
@click.option("--logfile",
type=click.Path(exists=False),
help="If specified, the log filename. "
" If unspecified, the log will be written to stdout.")
@click.argument('workflow_filepath', type=click.Path(exists=True))
def run(evaluate, logfile, workflow_filepath):
def run(evaluate, run_datasource, logfile, workflow_filepath):
logging_config = {}
logging_config["level"] = logging.INFO
......@@ -30,9 +36,11 @@ def run(evaluate, logfile, workflow_filepath):
try:
application = BDSSApplication(
evaluate=evaluate,
run_datasource=run_datasource,
workflow_filepath=workflow_filepath
)
application.run()
except Exception as e:
log.exception(e)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment