Skip to content
Snippets Groups Projects

Provide ability to run a single data source and check its results [WIP]

Closed Adham Hashibon requested to merge single-datasource-execution into master
9 files
+ 636
419
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -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-data-source",
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_data_source, 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_data_source=run_data_source,
workflow_filepath=workflow_filepath
)
application.run()
except Exception as e:
log.exception(e)
Loading