-
Notifications
You must be signed in to change notification settings - Fork 29
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
Flake8 fixes pt3 #126
Flake8 fixes pt3 #126
Conversation
@cadenmyers13 it's a drag I am afraid but every file we touch we should update the copyright statement at the top to give a date range ending in 2024 for the trustees of CU. |
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.
A few more comments on this one
@@ -319,7 +319,7 @@ def restrictConstrainedParameters(self): | |||
"""Set 'read-only' boxes that correspond to constrained parameters.""" | |||
|
|||
self.setToolTips(tooltips.phasepanel) | |||
txtbg = self.textCtrlA.DefaultStyle.BackgroundColour | |||
# txtbg = self.textCtrlA.DefaultStyle.BackgroundColour |
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.
This change will change behavior. If flake8 is complaining about txtbg not being used, just remove the txtbg =
from the beginning of the line.
@@ -293,13 +301,19 @@ def onColClick(self, event): # wxGlade: TemperatureSeriesPanel.<event_handler> | |||
column = event.GetColumn() | |||
# sort by temperature | |||
if column == 0: | |||
sortkey = lambda tf: float(tf[0]) | |||
|
|||
def sortkey(tf): |
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.
Define the function elsewhere then use it here
sortkey = lambda tf: order[tf[1]] | ||
|
||
def sortkey(tf): | ||
return order[tf[1]] |
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 above
I see in your edit you had it as trustees of michigan state. Do we want to do both or just Columbia? |
No description provided.