Skip to content

Commit

Permalink
Merge pull request #72 from BlueBrain/darshan-stop-scaring-me
Browse files Browse the repository at this point in the history
New exception in example for when no data is found
  • Loading branch information
AurelienJaquier authored Oct 23, 2023
2 parents 80e9cd8 + 6bfc520 commit 86f2426
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/emodel_pipeline_local_python/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def configure_targets(access_point):
"tolerance": 20
})

if not files_metadata:
raise FileNotFoundError("Cannot find electrophysiological experimental data. "
"Please provide them, with the correct path to them in targets.py.")

configurator = TargetsConfigurator(access_point)
configurator.new_configuration(files_metadata, targets_formated, protocols_rheobase)
configurator.save_configuration()
Expand Down

1 comment on commit 86f2426

@DrTaDa
Copy link

@DrTaDa DrTaDa commented on 86f2426 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I can picture exactly what happened behind this PR.

Please sign in to comment.