Skip to content

Commit

Permalink
Merge pull request #4753 from neutrinoceros/ytsimulationnotidentified…
Browse files Browse the repository at this point in the history
…_better_message

UX: add info about supported simulation types in YTSimulationNotIdentified
  • Loading branch information
neutrinoceros authored Dec 5, 2023
2 parents 414b617 + 284bfc9 commit 6b53539
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yt/utilities/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ def __init__(self, sim_type):
self.sim_type = sim_type

def __str__(self):
return f"Simulation time-series type {self.sim_type!r} not defined."
from yt.utilities.object_registries import simulation_time_series_registry

return (
f"Simulation time-series type {self.sim_type!r} not defined. "
f"Supported types are {list(simulation_time_series_registry)}"
)


class YTCannotParseFieldDisplayName(YTException):
Expand Down

0 comments on commit 6b53539

Please sign in to comment.