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

Fix default value of requires in MonitoredQuantity #624

Merged
merged 2 commits into from
May 8, 2015
Merged

Fix default value of requires in MonitoredQuantity #624

merged 2 commits into from
May 8, 2015

Conversation

Treora
Copy link
Contributor

@Treora Treora commented May 8, 2015

MonitoredQuantityBuffer assumes requires to be a list (at
monitoring/evaluators.py:45), so the default should be a list, not None.

I have not tested the problem nor the solution; just fixed it while reading
the code.

MonitoredQuantityBuffer assumes requires to be a list (at
monitoring/evaluators.py:45), so the default should be a list, not None.
@bartvm
Copy link
Member

bartvm commented May 8, 2015

Thanks, that does indeed look better (unless we're overlooking something, @mohammadpz?).

For future PRs, considering using a full if-else block instead of the ternary operator. I usually find that a bit more readable.

bartvm added a commit that referenced this pull request May 8, 2015
Fix default value of requires in MonitoredQuantity
@bartvm bartvm merged commit 5bd2d02 into mila-iqia:master May 8, 2015
@Treora Treora deleted the fix-monitoredquantity-requires branch May 8, 2015 12:30
@mpezeshki
Copy link
Member

As far as I see, @Treora is right.
Thanks

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

3 participants