Skip to content

Commit

Permalink
DOC: add lineshapes in TR-027
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 20, 2024
1 parent ce49082 commit befd08b
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 134 deletions.
13 changes: 6 additions & 7 deletions docs/report/026.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@
},
"outputs": [],
"source": [
"n_channels = 1\n",
"I = sp.Identity(n_channels)\n",
"K = sp.MatrixSymbol(\"K\", n_channels, n_channels)\n",
"CM = sp.MatrixSymbol(R\"{\\rho_{cm}}\", n_channels, n_channels)"
"n = 1\n",
"I = sp.Identity(n)\n",
"K = sp.MatrixSymbol(\"K\", n, n)\n",
"CM = sp.MatrixSymbol(R\"{\\rho_{cm}}\", n, n)"
]
},
{
Expand Down Expand Up @@ -405,7 +405,7 @@
"metadata": {},
"outputs": [],
"source": [
"rho = sp.MatrixSymbol(\"rho\", n_channels, n_channels)"
"rho = sp.MatrixSymbol(\"rho\", n, n)"
]
},
{
Expand Down Expand Up @@ -691,6 +691,7 @@
"Sp = go.Surface(x=X, y=Y, z=-T1p.imag, **sty(\"Physical (T1)\"))\n",
"Sn = go.Surface(x=X, y=-Y, z=-T2n.imag, **sty(\"Unphysical (T2)\"))\n",
"Sp.name = \"Physical sheet I\"\n",
"\n",
"s_thr = values[m1] + values[m2]\n",
"threshold_filter = x >= s_thr\n",
"lineshape = go.Scatter3d(\n",
Expand All @@ -701,7 +702,6 @@
" mode=\"lines\",\n",
" name=\"Lineshape\",\n",
")\n",
"\n",
"point = go.Scatter3d(\n",
" x=[s_thr],\n",
" y=[0],\n",
Expand All @@ -711,7 +711,6 @@
" name=\"Branch point\",\n",
")\n",
"\n",
"\n",
"fig = go.Figure(data=[Sn, Sp, lineshape, point])\n",
"fig.update_layout(\n",
" height=550,\n",
Expand Down
Loading

0 comments on commit befd08b

Please sign in to comment.