Skip to content

Commit

Permalink
revive mixture_profiles.py tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Dec 15, 2016
1 parent 8348fa8 commit 69225c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ script:
- coverage run -a test/test_sdss.py
- coverage run -a test/test_tractor.py
- coverage run -a test/test_galaxy.py
- coverage run -a tractor/mixture_profiles.py
#- coverage run -a examples/tractor-sdss-synth.py --roi 100 200 100 200 --no-flipbook
- coverage run -a examples/tractor-sdss-synth.py --roi 0 100 0 100 --run 1000 --camcol 1 --field 100 --band r --sdss-dir test/data-sdss --const-invvar --no-flipbook

Expand Down
4 changes: 2 additions & 2 deletions tractor/mixture_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
except:
mp_fourier = None

from .patch import Patch
from tractor.patch import Patch

# magic arrays, generated by running optimize_mixture_profiles.py:
# (note optimize_mixture_profiles.py now lives in Hogg's TheTractor github repo)
Expand Down Expand Up @@ -568,7 +568,7 @@ def functional_test_patch_maker(fn, psf=None):
raise RuntimeError('c_gauss_2d_approx failed')

r2 = np.zeros((H,W))
rtn = c_gauss_2d_grid(x0 - dx, 1, W, y0 - dy, 1, H, amp, mean, var, r2)
rtn = c_gauss_2d_grid(x0, x1, y0, y1, dx, dy, amp, mean, var, r2)
if rtn == -1:
raise RuntimeError('c_gauss_2d_grid failed')

Expand Down

0 comments on commit 69225c8

Please sign in to comment.