-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Integrate findobj into photutils #44
Conversation
Wow ... this is a huge contribution ... thanks! Let's discuss in the hangout today whether we want to merge this quickly or do an extensive review here. In any case, the minimum requirement for merging is that the travis-ci build works ... at the moment it fails because you have a top-level I think at the moment there are no wheels for |
@cdeil - scikit-image doesn't take too long to build, so while it'd be nice to have the wheels, it shouldn't hold back the PR. |
There are now skimage wheels in my wheelhouse I think.
|
Note - I need to still copy these to my wheelhouse (since we use this one as the primary one for astropy) |
Locally all tests in
https://gist.github.com/cdeil/98ef22f80b108062e369 @larrybradley I think you have to add a You should be able to get this error locally if you don't run |
@larrybradley Now the tests pass for me locally. On Python 3.3 and 3.4 I see this warning printed at the end:
It doesn't make the test fail, so won't hold up merging this today, but if you can get rid of it might as well... |
@cdeil The test data files are all opened via Does anyone else have any suggestions as to what may be causing this? |
The tests are still failing because of the optional |
@larrybradley You have to mark the tests that require OK? |
================================= | ||
|
||
.. warning:: | ||
These functions require `astropy`_ version 0.3.0 (or newer). |
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.
I think this warning can be removed ... we said that we'd require Astropy 0.4 for all of photutils
soon.
@larrybradley There's a bunch or warnings in the sphinx docs build: You have to resolve those to get green light from travis-ci (by repeatedly running |
@cdeil Sure. I'm working on skipping the tests now. |
import warnings | ||
import math | ||
import numpy as np | ||
# import astropy.nddata |
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.
Remove this uncommented line.
I've left a few inline comments ... feel free to ignore those if you don't have time for such cleanup today. I'll be back in 30 min and can get rid of the Sphinx docs warnings then. |
Thanks, @cdeil. I've taken care of all your inline comments. I'll leave the doc warnings to you. One thing I noticed is that using the |
I have to admit I'm struggling a bit with the docs. One thing that was missing was |
And |
@larrybradley - it looks like this will need to be rebased, but I suspect this is just a minor conflict in the docs TOC. |
namespace. (they are lower-level and fewer top-level things means it's simpler for the end-user.)
OK, this is rebased now. I hope this passes and we can merge it before anything else! |
@@ -0,0 +1,5 @@ | |||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | |||
""" | |||
This subpackage contains modules and packages for interpreting data storage |
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.
Does this docstring make sense for photutils.detection
?
Thanks, @cdeil. I don't know where that docstring came from. |
@larrybradley Now that If you have a test case (e.g. one or two simulated Gauss sources?) that could be added as |
@larrybradley I'll be offline soon and travis-ci is super-slow today. Feel free to merge this yourself as soon as there is green light on travis-ci. |
Integrate findobj into photutils
Great! Everyone ... if you get a chance to try out the detection routines ... check out the docs here. |
Use wheels on travis
This massive PR merges my
findobj
package intophotutils
(and I was able to preserve thefindobj
commit history).I placed the new files (
detection.py
,findstars.py
, andmorphology.py
) in a directory calleddetection
, but the functions are exposed at thephotutils
top level. I placedfindobj/utils/scale_img.py
intophotutils/utils/scale_img.py
. We can move things around later as needed.@cdeil I didn't reorganize any of the tests, but we can decide on the best approach later.