Skip to content

Commit

Permalink
MAINT: move orientation-K.svg to GitHub
Browse files Browse the repository at this point in the history
* DX: store TR-022 output in subdirectory
  • Loading branch information
redeboer committed Oct 1, 2024
1 parent bdd9e27 commit 0b68e19
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 277 deletions.
1 change: 0 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"**/Manifest.toml",
"**/Project.toml",
"*.ico",
"*.svg",
".editorconfig",
".envrc",
".gitattributes",
Expand Down
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,10 @@ repos:
exclude: >
(?x)^(
.*\.bib|
.*\.svg|
\.cspell\.json
)$
- id: mixed-line-ending
- id: trailing-whitespace
exclude: >
(?x)^(
.*\.svg
)$

- repo: https://github.com/ComPWA/prettier-pre-commit
rev: v3.3.3
Expand Down
22 changes: 16 additions & 6 deletions docs/022.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"source": [
"Reference subsystem 1 is defined as:\n",
"\n",
"![](022/orientation-K.svg)"
"![orientation-K.svg](https://github.com/user-attachments/assets/21c74425-d9c9-4041-9a63-9c3904b26a89)"
]
},
{
Expand Down Expand Up @@ -448,7 +448,9 @@
"ax.set_ylabel(s2_label)\n",
"ax.set_box_aspect(1)\n",
"ax.pcolormesh(X, Y, B_arrays[0, 0].real)\n",
"fig.savefig(\"022/b00-is-intensity.png\")\n",
"output_file = Path(\"022/b00-is-intensity.png\")\n",
"output_file.parent.mkdir(exist_ok=True)\n",
"fig.savefig(output_file)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -516,7 +518,9 @@
" progress_bar.update()\n",
"progress_bar.close()\n",
"fig.tight_layout()\n",
"fig.savefig(\"022/b-matrix-elements.png\")\n",
"output_file = Path(\"022/b-matrix-elements.png\")\n",
"output_file.parent.mkdir(exist_ok=True)\n",
"fig.savefig(output_file)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -606,7 +610,9 @@
"ax.set_xlabel(Rf\"{s1_label}, $\\quad\\alpha_z$\")\n",
"ax.set_ylabel(Rf\"{s2_label}, $\\quad\\alpha_x$\")\n",
"cbar.set_label(R\"$\\left|\\vec{\\alpha}\\right|$\")\n",
"fig.savefig(\"022/alpha-field.svg\")\n",
"output_file = Path(\"022/alpha-field.svg\")\n",
"output_file.parent.mkdir(exist_ok=True)\n",
"fig.savefig(output_file)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -639,7 +645,9 @@
"ax.set_xlabel(Rf\"{s1_label}, $\\quad \\beta_z = B_{{03}}$\")\n",
"ax.set_ylabel(Rf\"{s2_label}, $\\quad \\beta_x = B_{{01}}$\")\n",
"cbar.set_label(R\"$\\left|\\vec{\\beta}\\right|$\")\n",
"fig.savefig(\"022/beta-field.svg\")\n",
"output_file = Path(\"022/beta-field.svg\")\n",
"output_file.parent.mkdir(exist_ok=True)\n",
"fig.savefig(output_file)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -696,7 +704,9 @@
"ax1.set_xlabel(s1_label)\n",
"ax2.set_xlabel(s1_label)\n",
"ax1.set_ylabel(s2_label)\n",
"fig.savefig(\"022/alpha-beta-comparison.png\")\n",
"output_file = Path(\"022/alpha-beta-comparison.png\")\n",
"output_file.parent.mkdir(exist_ok=True)\n",
"fig.savefig(output_file)\n",
"plt.show()"
]
},
Expand Down
1 change: 0 additions & 1 deletion docs/022/.gitignore

This file was deleted.

Loading

0 comments on commit 0b68e19

Please sign in to comment.