There was a problem hiding this comment.
Most of utility abstractions look good although it seems majority of if checks are now contradicting PEP8 style in the following two patterns:
Sorry, something went wrong.
|
Most of utility abstractions look good although it seems majority of if checks are now contradicting PEP8 style in the following two patterns:
You are right. Some variables are considered to be None by default, so it should be checked. Nice catch! I'll fix that. |
Sorry, something went wrong.
| location = Source.device | ||
| else: | ||
| location = Source.host | ||
| location = Source.device if is_device else Source.host |
There was a problem hiding this comment.
revert
Sorry, something went wrong.
There was a problem hiding this comment.
IMO, it's better now :)
Sorry, something went wrong.
| high_arr = constant_array(high, vdims[0], vdims[1], vdims[2], vdims[3], vty) | ||
| else: | ||
| high_arr = high.arr | ||
| low_arr = low.arr if is_low_array else constant_array(low, vdims[0], vdims[1], vdims[2], vdims[3], vty) |
There was a problem hiding this comment.
revert
Sorry, something went wrong.
There was a problem hiding this comment.
Still, I don't see a point to revert these changes. These variables are just temp variables and they are not changed later anyhow. But we drop extra 7 lines of code.
Sorry, something went wrong.
|
I'm going to postpone this PR till #244 is merged. I will add the arg --flake8 to the pytest for automatic code style checks here right after. |
Sorry, something went wrong.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.