-
-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
…d except in the rebin unit test there is floating point noise that I don't understand. I had to write wrapper functions for all of the C functions for the unit tests, so I may switch back to putting the lacosmicx logic into cython. I am going to do some tests.
…mmands to the wrappers.
…nd convolution fine structure image.
…with top level setup.py file.
…ll be garbage collected properly.
@larrybradley and / or @crawfordsm Do you have time to review this? |
I'll review this next week. |
@cdeil @larrybradley - @cmccully raised a valid question as to whether this should be included in imageutils or should be its own package? Another option is to include it as part of |
@@ -0,0 +1,138 @@ | |||
# Licensed under a 3-clause BSD style license - see LICENSE.rst |
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.
This file should not be included here - it only needs to exist once, at the top-level of the package.
I think this has to be a dependency for photutils and ccdproc, right? If so, then it can't be part of either separately. And I think a separate package just for this doesn't make sense because it will be a pain to maintain in lockstep with |
Also, @cmccully, am I reading right that it does not parallelize on |
@cdeil - ok, but I think it would still be worth splitting out the files as I suggested in my last comment, since this would be low effort for now and would make things a lot clearer to tackle in future. |
@cdeil I am sorry I have missed your original question about a Debian machine. If you don't need anything "exotic" then you could get Debian running via docker, virtualbox (e.g. we provide neurodebian appliance) or vagrant. If you need access to some specific platform (e.g. sparc), email me ;) |
@yarikoptic - The question is exactly if |
;-) well -- seems not even an exotic one necessary (tested on my laptop and sparc box) to fail install:
@cdeil email me your public ssh key and desired login name, paste here the fingerprint of your ssh key and I will give you access to an exotic box so you could try yourself |
By the way, if people want to go ahead and merge this we can do that and I'm happy to do the splitting out of the files as I mentioned above. |
+1 for splitting out the general purpose functions, but that can happen in a separate PR. I also wanted to investigate some small differences (when I get time), but that too can be in a separate PR. |
Ok, so it seems like we're just waiting for @eteq to confirm back what Pieter van Dokkum says, and if all is well on that front, we can merge and do further work on this before starting to do a PR for astropy. |
I talked to him yesterday, and then sent him an e-mail to get it in writing (and answer a few questions about our license), and he hasn't replied yet. It's possible he's left for break...? Will try pinging him again. |
I am happy to refactor this code, but I won't have much time until next week after the holiday. Do you want to include that in this pull request or should we merge this and then refactor in a separate pull request? |
I suspect that will also have to wait until after the holiday, as I still haven't heard back. |
@eteq - any updates on this? |
Any updates on the licensing issue? |
The travis build now fails for two of the tests saying jinja2 is not installed. I think I am using the most up to date build of imageutils master. Anyone know how to fix this? Thanks. |
@cmccully - in the file
add
basically |
@eteq - any updates on the licensing issue? |
@eteq @astrofrog -- friendly bump...we are waiting for this to land somewhere so we remove functionality that duplicates this (but runs much more slowly) in ccdproc |
lacosmic is now in the |
I have finished the optimized LA Cosmic implementation. It uses Cython for the main part of the algorithm and uses C for the individual routines. Everything is multithreaded using OpenMP (the Cython standard). For a 4K x 2K image, this implementation is ~35 times faster than cosmics.py written by Malte Tewes (which is already significantly faster than the original IRAF version).
Given the complexity of this code, should this be included in imageutils or should it be its own package?
Any other comments are welcome.