Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add correct C++ solver names for validation errors #699

Merged
merged 1 commit into from
Feb 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gillespy2/solvers/cpp/c_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ def _validate_sbml_features(self, unsupported_features: "dict[str, str]"):
detected.append(feature_name)

if len(detected):
raise gillespyError.ModelError(f"Could not run Model. SBML Feature: {detected} not supported by SSACSolver.")
raise gillespyError.ModelError(f"Could not run Model, "
f"SBML Features not supported by {self.name}: "
+ ", ".join(detected))

def _validate_seed(self, seed: int):
if seed is None:
Expand Down