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

clarify dead code situation in constraints.py #540

Closed
lukasheinrich opened this issue Sep 4, 2019 · 3 comments · Fixed by #1639
Closed

clarify dead code situation in constraints.py #540

lukasheinrich opened this issue Sep 4, 2019 · 3 comments · Fixed by #1639
Assignees
Labels
refactor A code change that neither fixes a bug nor adds a feature

Comments

@lukasheinrich
Copy link
Contributor

Question

see TODO in there

@kratsg
Copy link
Contributor

kratsg commented Sep 4, 2019

I don't see anything?

@matthewfeickert
Copy link
Member

@kratsg
Copy link
Contributor

kratsg commented Sep 4, 2019

Ahh, ... huh. It was introduced in #298 which I didn't catch (sorry!) did catch in this comment. This is also affecting the gaussian combined constraints as well as there's a similar try/except in that block.

I guess it's a question of whether someone can provide a gaussian/poisson constraint without the sigmas/factors assigned... Likely, it doesn't make sense if they don't, so we should just make sure the code crashes if that happens somehow...

@lukasheinrich lukasheinrich mentioned this issue Sep 5, 2019
4 tasks
@matthewfeickert matthewfeickert added the refactor A code change that neither fixes a bug nor adds a feature label Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants