Skip to content

Commit

Permalink
Merge pull request #161 from BlueBrain/better_error_message
Browse files Browse the repository at this point in the history
A better ValueError message for inccorect location
  • Loading branch information
darshanmandge committed Jul 18, 2024
2 parents 45acd9a + 183ad9f commit fd3dc5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bluepyemodel/evaluation/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def define_location(definition):
return soma_loc
if definition["location"] == "ais":
return ais_loc
raise ValueError("Only soma and ais are implemented for CompRecording")
raise ValueError(
"Only soma and ais are implemented for CompRecording."
f' Cannot load {definition["name"]} at {definition["location"]}.'
)

if definition["type"] == "somadistance":
return NrnSomaDistanceCompLocation(
Expand Down

0 comments on commit fd3dc5a

Please sign in to comment.