Repository navigation
Code cleanup - #51
Code cleanup#51
Conversation
|
@astrofrog - Rebased. |
|
@leejjoon - I'll leave this open a couple of days in case you want to review this (but I think nothing here is controversial) |
|
@astrofrog - Sure. There're still a handful of commented out code lines. However they may be removed later (e.g. until the code has better test coverage), as I'm not sure why they were left there, whether it was for future reuse, or they can be removed for good. |
|
Nice. I've got a couple suggestions for more unused code that can be removed (this is from a WIP branch):
This might change @astrofrog's comment about nothing being controversal though :/ I've been trying to figure out the code for issue #43, and finding this stuff in the way. |
|
I think @sargas suggestions are all harmless. So i have no objection in removing/replacing those things. |
Got rid of a function by using astropy.extern.six Removed a fix_header function that appears superfluous
|
@leejjoon Thanks @bsipocz https://gist.github.com/sargas/654a6dc7f7b3d57a6464 is my changes, but I can do another PR if you'd like to keep these seperate. I was much harsher to commented out code (since it's in git's history if needed, and much is likely to be removed converting from kapteyn to |
|
@sargas - I was just about to write the same as @astrofrog. A third option is to just push your brunch to github, and then I can cherry pick your commit on top of this PR. |
|
@astrofrog @bsipocz Interesting, I didn't realize you could do PR's on PR's. I added bsipocz#1 if you'd like to merge or cherry-pick. |
|
Realizing that they were left out yesterday, I repeated the same cleaning exercise with the cython and test files. |
There was a problem hiding this comment.
@bsipocz - I think the above lines could be left - even though this is not used currently, it's good to have these here in case it's needed in future.
|
@astrofrog - thanks for the comments, they are dealt with in the latest commit. |
As a light exercise for a Sunday evening, I've made some code clean up involving mainly the removal of unused imports, stale looking code/comment parts, and some trivial PEP8 changes (adding/removing white spaces).
This PR builds on #47, since a significant amount of code was removed in that. Once that one is merged, I'll rebase this one to make the review easier.