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

Flake8 fixes pt3 #126

Closed
wants to merge 16 commits into from
Closed

Flake8 fixes pt3 #126

wants to merge 16 commits into from

Conversation

cadenmyers13
Copy link
Contributor

No description provided.

@sbillinge
Copy link
Contributor

@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.

Copy link
Contributor

@sbillinge sbillinge left a 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
Copy link
Contributor

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):
Copy link
Contributor

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]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@cadenmyers13
Copy link
Contributor Author

@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.

I see in your edit you had it as trustees of michigan state. Do we want to do both or just Columbia?

@cadenmyers13 cadenmyers13 deleted the flake8v3 branch July 31, 2024 16:20
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.

2 participants