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

Simulation methods #29

Merged
merged 14 commits into from
Jun 8, 2015
Merged

Simulation methods #29

merged 14 commits into from
Jun 8, 2015

Conversation

the-code-magician
Copy link
Contributor

Fix simulation methods.
Increase test units for room according to Shlomi et al 2005.

model.solver._add_variable(self.variables[variable_id])

def _verify_model(self, model):
assert self._id == hash(model), "Cannot use a different model instance"
Copy link
Collaborator

Choose a reason for hiding this comment

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

asserts are not intended for this (because they can be turned off globaly). @joaocardoso you need add a if statement and raise a proper exception here.

the-code-magician added a commit that referenced this pull request Jun 8, 2015
@the-code-magician the-code-magician merged commit 4d57825 into devel Jun 8, 2015
@phantomas1234 phantomas1234 deleted the simulation_methods branch July 28, 2015 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants