mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-11-13 01:53:31 +01:00
Simu: 8 dump information of timing_outline figure into file
This commit is contained in:
parent
25215300da
commit
631fb6a398
3 changed files with 37 additions and 1 deletions
|
@ -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) ))"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
14
simulations/figures/08_beacon_sync_timing_outline.dat
Normal file
14
simulations/figures/08_beacon_sync_timing_outline.dat
Normal file
|
@ -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
|
BIN
simulations/figures/08_beacon_sync_timing_outline.pdf
Normal file
BIN
simulations/figures/08_beacon_sync_timing_outline.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue