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

DM-15442: Add missing pyList=[] to test/SConscript files #60

Merged
merged 6 commits into from Aug 17, 2018

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Aug 16, 2018

and stop using python 2 and enable automatic flake8 checking

@timj
Copy link
Member

timj commented Aug 16, 2018

I've turned on Travis.

@@ -69,15 +65,15 @@ def run(visit, rerun, config):
psf = butler.get('psf', dataId)
print('PSF:', psf)

testDeblend(foots, pks, mi, psf)
# testDeblend(foots, pks, mi, psf)
Copy link
Member

Choose a reason for hiding this comment

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

Why is the code to test the deblender commented out?


class _mockSource(object):
class _MockSource(object):
Copy link
Member

Choose a reason for hiding this comment

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

Could in theory remove (object) here and elsewhere.

from builtins import zip
from builtins import str
from builtins import range
from builtins import object
#!/usr/bin/env python
Copy link
Member

Choose a reason for hiding this comment

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

Don't really need this shebang.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. I also found and removed it in some other library and test files.

@@ -276,7 +279,7 @@ def deblend(self, exposure, srcs, psf):
n0 = len(srcs)
nparents = 0
for i, src in enumerate(srcs):
#t0 = time.clock()
# t0 = time.clock()
Copy link
Member

Choose a reason for hiding this comment

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

time.clock() is deprecated so it's debatable whether this code should be here at all. See DM-15450

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this. I suggest we fix it on DM-15450

@r-owen r-owen merged commit 37292d5 into master Aug 17, 2018
@ktlim ktlim deleted the tickets/DM-15442 branch August 25, 2018 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants