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

Nightwatch issue162 warning #1028

Merged
merged 3 commits into from Nov 21, 2020
Merged

Nightwatch issue162 warning #1028

merged 3 commits into from Nov 21, 2020

Conversation

jalasker
Copy link
Contributor

Nightwatch is unable to handle images with !=500 fibers and this branch issues specific warnings about that.

@sbailey
Copy link
Contributor

sbailey commented Nov 18, 2020

Concept is good, but please run python setup.py test which will reveal a syntax error in your latest commit (an errant "" on line 67 causing a syntax error on line 68).

Also, on lines 66 and 69, typically "&" and "|" are reserved for bitwise-and/or operations, while "and" and "or" are used for boolean and/or like here. In this case it is equivalent given your parentheses, but they do have different operator precedence that can have some surprising side effects, so when you are doing operations on booleans (like here) it is generally better to use "and" and "or", and reserve "&" and "|" for cases where you really do mean to be doing bitwise operations on integers.

@sbailey sbailey merged commit 43fc755 into master Nov 21, 2020
@sbailey sbailey deleted the nightwatch-issue162-warning branch November 21, 2020 00:33
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