Skip to content

Commit

Permalink
put delta back in the namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Aug 30, 2024
1 parent a905b26 commit 5bbc1c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions notebooks/file_calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1270,10 +1270,11 @@
" ], axis=0)\n",
" \n",
" # Run cross-polarized phase calibration\n",
" delta_gains = abscal.cross_pol_phase_cal(\n",
" model=model, data=data_here, wgts=wgts_here, data_bls=data_bls, model_bls=model_bls, return_gains=True,\n",
" gain_ants=sol.gains.keys()\n",
" delta = abscal.cross_pol_phase_cal(\n",
" model=model, data=data_here, wgts=wgts_here, data_bls=data_bls, model_bls=model_bls, return_gains=False, \n",
" refpol='Jee', gain_ants=sol.gains.keys()\n",
" )\n",
" delta_gains = {antpol: (np.ones_like(delta) if antpol[1] == 'Jee' else np.exp(1j * delta)) for (ant, pol) in gain_ants}\n",
" \n",
" # apply gains\n",
" # \\Delta = \\phi_e - \\phi_n, where V_{en}^{cal} = V_{en}^{uncal} * e^{i \\Delta} \n",
Expand Down

0 comments on commit 5bbc1c0

Please sign in to comment.