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

ENH: check if feature class name is valid #213

Merged
merged 2 commits into from Mar 6, 2017

Conversation

fedorov
Copy link
Collaborator

@fedorov fedorov commented Mar 2, 2017

No description provided.

Copy link
Collaborator

@JoostJM JoostJM left a comment

Choose a reason for hiding this comment

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

LGTM, however it still contains a style bug, which causes flake 8 to fail the tests

@@ -284,6 +284,9 @@ def enableFeatureClassByName(self, featureClass, enabled=True):
"""
Enable or disable all features in given class.
"""
if not featureClass in self.getFeatureClassNames():
Copy link
Collaborator

Choose a reason for hiding this comment

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

@fedorov, flake 8 fails due to this line: if you compare with "not" and "in", flake 8 requires you to put these together, i.e. if featureClass not in self.getFeatureClassNames():

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I admit I forgot to follow up and check the tests after submitting the PR.

@fedorov
Copy link
Collaborator Author

fedorov commented Mar 6, 2017

@JoostJM the checks are now passing.

@JoostJM JoostJM merged commit 22baea7 into AIM-Harvard:master Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants