Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Optimize imports #1134

Merged
merged 5 commits into from
Jul 26, 2014
Merged

Optimize imports #1134

merged 5 commits into from
Jul 26, 2014

Conversation

rhyolight
Copy link
Member

Fixes #1133.

@rhyolight rhyolight added this to the Sprint 26 milestone Jul 21, 2014
@rhyolight rhyolight self-assigned this Jul 21, 2014
@rhyolight
Copy link
Member Author

This obviously needs some work. The automated "Optimize Imports" refactoring I applied from PyCharm was a bit too aggressive. I'll manually work on this when I have time. But there are a lot of unused and poorly stated imports throughout the code that could benefit from this refactoring.

@david-ragazzi
Copy link
Contributor

ooh... PyCharm.. 😍

@rhyolight rhyolight assigned rhyolight and unassigned rhyolight Jul 25, 2014
@rhyolight
Copy link
Member Author

@scottpurdy / @chetan51 Please review.

The optimize imports refactoring was applied with tooling, and I had to go back into some of the source files and undo some of them that should not have been touched. For the most part, the refactoring removes unused imports and reorders existing imports for (1) system libs (2) third party libs & (3) local imports in that order.

@chetan51
Copy link
Contributor

@david-ragazzi I've just started using PyCharm as well, and I really like it so far!


from nupic.frameworks.opf.opfutils import (
validateOpfJsonValue)
from nupic.frameworks.opf.opftaskdriver import (
IterationPhaseSpecLearnOnly,
IterationPhaseSpecInferOnly,
IterationPhaseSpecInferOnly,
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix this and other formatting errors

@chetan51
Copy link
Contributor

Looks good, other than new formatting problems caused by the automatic refactor.

@rhyolight rhyolight modified the milestones: Sprint 27, Sprint 26 Jul 25, 2014
rhyolight added a commit that referenced this pull request Jul 26, 2014
@rhyolight rhyolight merged commit ae84039 into numenta:master Jul 26, 2014
@david-ragazzi
Copy link
Contributor

@david-ragazzi I've just started using PyCharm as well, and I really like it so far!

Yeah, JetBrains' products are amazing!

@@ -26,4 +26,4 @@
"""

from nupic.bindings.math import NearestNeighbor
from nupic.bindings.algorithms import svm_01, svm_dense
from nupic.bindings.algorithms import svm_01, svm_dense
Copy link
Contributor

Choose a reason for hiding this comment

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

missing newline

@rhyolight
Copy link
Member Author

@scottpurdy See #1148

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up import statements
4 participants