-
Notifications
You must be signed in to change notification settings - Fork 1
chore: resolve flake8 in datacontainer, imageplot, and live.py #16
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
Conversation
zmx27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
src/diffpy/srxplanargui/imageplot.py
Outdated
| "srxconfig", | ||
| desc="Comparing to the average intensity at similar diffraction angle, \npixels with intensity larger than avg_int*high will be masked", | ||
| desc="Comparing to the average intensity at similar diffraction angle," | ||
| + "\npixels with intensity larger than" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space here
src/diffpy/srxplanargui/imageplot.py
Outdated
| "srxconfig", | ||
| desc="Comparing to the average intensity at similar diffraction angle, \npixels with intensity less than avg_int*low will be masked", | ||
| desc="Comparing to the average intensity at similar diffraction angle," | ||
| + "\npixels with intensity less than avg_int*low will be masked", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space here
src/diffpy/srxplanargui/imageplot.py
Outdated
| def createPlot(self): | ||
| # image = np.log(self.srx.loadimage.loadImage(self.imagefile)) | ||
| # image = np.log(self.srx.loadimage. | ||
| # loadImage(self.imagefile)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that you probably did this because the line was too long, but is it possible to find some other way of doing this? It feels kind of awkward to split up a function call like this. If not, you can probably keep this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the format, see the new commit
src/diffpy/srxplanargui/imageplot.py
Outdated
| hinttext = Str( | ||
| "Zoom: <z>; Reset: <Esc>; Pan: <drag/drop>; Toggle XY coordinates: <P>" | ||
| "Zoom: <z>; Reset: <Esc>;" | ||
| "Pan: <drag/drop>; Toggle XY coordinates: <P>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a space here
|
@zmx27 Ready for another review |
zmx27
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
@sbillinge Ready for review |
|
As a general matter, I think it is better to break strings without introducting the but instead |
@zmx27 Ready for review same operation in #9
Fix module not used (E402) & cond comparison legacy issue (E711)