Skip to content

Commit

Permalink
add diag plot to test_radialI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Nov 1, 2023
1 parent 43f3311 commit eecfef4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/onedim_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ def test_radialI(mock_1d_image_model):

rtest, itest = radialI(i2d, coords, geom, bins=None)

_, ax = plt.subplots(ncols=2)

plot_image(i2d, extent=coords.img_ext, ax=ax[0], clab='Jy sr$^{-2}$')

ax[0].title('AS 209-like profile.\nGeometry: {:}'.format(geom))

ax[1].plot(r, i, 'k', label='truth')
ax[1].plot(rtest, itest, 'r.-', label='result')

expected = [
5.79780326e+10, 2.47990375e+10, 4.19794053e+09, 1.63165616e+10,
2.56197452e+10, 1.86014523e+10, 1.39800643e+10, 1.14935415e+10,
Expand Down

0 comments on commit eecfef4

Please sign in to comment.