Skip to content

Commit

Permalink
Merge eaf6315 into 5ba2f70
Browse files Browse the repository at this point in the history
  • Loading branch information
bwinkel committed Apr 27, 2019
2 parents 5ba2f70 + eaf6315 commit 61f68b8
Show file tree
Hide file tree
Showing 8 changed files with 1,468 additions and 475 deletions.
18 changes: 10 additions & 8 deletions pycraf/gui/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,19 +195,21 @@ def test_map_worker(qtbot):

res = myapp.map_results

print(res['L_b'][::80, ::80].to(cnv.dB).value)
print(res['eps_pt'][::80, ::80].to(apu.deg).value)
assert_quantity_allclose(
res['L_b'][::80, ::80].to(cnv.dB).value, [
[147.83278909, 133.58127549, 111.43421362, 134.45908465],
[111.45317964, 126.40950486, 127.38498799, 119.25246431],
[119.00447374, 105.44468519, 126.87036123, 119.33221431],
[113.64151601, 125.49854085, 116.10536532, 136.80592942],
[147.92110506, 133.64246369, 111.43421362, 134.20808414],
[111.45317964, 126.50588342, 127.41079286, 119.47281152],
[118.95606625, 105.44468519, 126.89590692, 119.33537173],
[113.64151601, 125.3059271, 116.06473428, 136.72188462],
])
assert_quantity_allclose(
res['eps_pt'][::80, ::80].to(apu.deg).value, [
[0.27189932, 0.20469701, 0.65046079, 0.64865387],
[-0.06627310, 0.03763396, 0.44081357, 0.30713528],
[-0.37531096, -0.58974224, -0.46243938, -0.62455889],
[-0.37766769, -0.49652843, -0.62897185, -0.46686728],
[0.27265693, 0.20522323, 0.6505462, 0.64897268],
[-0.06723739, 0.03969113, 0.44085012, 0.30607933],
[-0.37428988, -0.58972059, -0.46088839, -0.62473188],
[-0.37882374, -0.49772378, -0.62911416, -0.46750982],
])
assert_equal(res['path_type'][::80, ::80], [
[1, 1, 0, 1],
Expand Down
Loading

0 comments on commit 61f68b8

Please sign in to comment.