Skip to content

Commit

Permalink
tests pass in intermediate fake dataset state.
Browse files Browse the repository at this point in the history
  • Loading branch information
iancze committed Jan 1, 2024
1 parent 53ec3ad commit 7e55d0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def packed_cube(img2D_butterfly):
"""Create a packed tensor image cube from the butterfly."""
# now (1, npix, npix)
print("npix packed cube", img2D_butterfly.shape)
nchan = 10
nchan = 9
# tile to some nchan, npix, npix
cube = torch.tile(torch.from_numpy(img2D_butterfly), (nchan, 1, 1))
# convert to packed format
Expand Down
1 change: 1 addition & 0 deletions test/losses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def test_rchi_evaluation(
print("loose nll", log_like)

# calculate the gridded log likelihood
print(gridded_vis_model.size(), dataset.mask.size())
log_like_gridded = losses.r_chi_squared_gridded(gridded_vis_model, dataset)
print("gridded nll", log_like_gridded)

Expand Down

0 comments on commit 7e55d0f

Please sign in to comment.