diff --git a/simulations/08_beacon_sync.ipynb b/simulations/08_beacon_sync.ipynb index 5727efa..e087cfc 100644 --- a/simulations/08_beacon_sync.ipynb +++ b/simulations/08_beacon_sync.ipynb @@ -376,7 +376,29 @@ "\n", "fig.show()\n", "if False:\n", - " fig.savefig('figures/08_beacon_sync_timing_outline.pdf')" + " fname = 'figures/08_beacon_sync_timing_outline'\n", + "\n", + " # Dump figure\n", + " fig.savefig(fname +'.pdf')\n", + " \n", + " # Dump information into accompanying file\n", + " with open(fname + '.dat', 'w+') as fp:\n", + " fp.write(\"f_beacon = {}MHz\\n\".format(f_beacon))\n", + " fp.write(\"samplerate = {}\\n\".format(samplerate))\n", + " fp.write(\"band = {}MHz\\n\".format(band))\n", + " fp.write(\"timelength = {}us\\n\".format(timelength))\n", + " \n", + " fp.write(\"-\"*8 + \"\\n\")\n", + " fp.write(\"\\Delta t = {}ns\\n\".format( (impulses_offsets[1][0] - impulses_offsets[0][0])/ns ))\n", + " fp.write(\"t_phi = {}ns\\n\".format( (tmp_beacon_offsets[1]-tmp_beacon_offsets[0])/ns ))\n", + " fp.write(\"\\Delta A = {}ns\\n\".format( (A[1] - A[0])/ns ))\n", + " fp.write(\"kT = {}ns = {}T\\n\".format( (B[1]-B[0])/ns, (B[1]-B[0])*f_beacon ))\n", + " \n", + " fp.write(\"-\"*8 + \"\\n\")\n", + " fp.write(\"A_1 = {}ns\\n\".format( (A[0])/ns ))\n", + " fp.write(\"A_2 = {}ns\\n\".format( (A[1])/ns ))\n", + " fp.write(\"B_1 = {}ns = {}T\\n\".format( (B[0])/ns, (B[0]*f_beacon) ))\n", + " fp.write(\"B_2 = {}ns = {}T\\n\".format( (B[1])/ns, (B[1]*f_beacon) ))" ] }, { diff --git a/simulations/figures/08_beacon_sync_timing_outline.dat b/simulations/figures/08_beacon_sync_timing_outline.dat new file mode 100644 index 0000000..3ee7c01 --- /dev/null +++ b/simulations/figures/08_beacon_sync_timing_outline.dat @@ -0,0 +1,14 @@ +f_beacon = 70 +samplerate = 5000 +band = (30, 80) +timelength = 0.2 +-------- +\Delta t = 74.20000000000002ns +t_phi = 8.571428571428573ns +\Delta A = 5.7999999999999785ns +kT = 71.42857142857142ns = 5.0T +-------- +A_1 = -13.857142857142852ns +A_2 = -8.057142857142873ns +B_1 = 57.14285714285714ns = 4.0T +B_2 = 128.57142857142856ns = 9.0T diff --git a/simulations/figures/08_beacon_sync_timing_outline.pdf b/simulations/figures/08_beacon_sync_timing_outline.pdf new file mode 100644 index 0000000..9b47194 Binary files /dev/null and b/simulations/figures/08_beacon_sync_timing_outline.pdf differ