Skip to content

Commit

Permalink
chore: remove binary files (#138)
Browse files Browse the repository at this point in the history
* ci: find binary output in notebooks with pre-commit
* ci: forbid committing binary files
* chore: remove binaries from ADR-001/operators
* chore: remove binaries from ADR-001/sympy
* chore: remove binaries from ADR-002/composition
* chore: remove binaries from ADR-002/expr
* chore: remove binaries from ADR-002/function
* chore: remove binaries from TR-002
* chore: remove binaries from TR-003
* chore: remove binaries from TR-001
* chore: freeze cell outputs TR-005
* chore: remove binaries from TR-006
* chore: remove binaries from TR-008
* chore: remove binaries from TR-009
* chore: remove binaries from TR-010
* chore: remove binaries from TR-011
* chore: remove binaries from TR-013
* chore: remove binaries from TR-014
* chore: remove binaries from TR-015
  • Loading branch information
redeboer authored Apr 24, 2022
1 parent b325137 commit 2281d73
Show file tree
Hide file tree
Showing 36 changed files with 1,236 additions and 39,878 deletions.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,18 @@ repos:
.*\.svg
)$
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.6
hooks:
- id: forbid-binary
always_run: true
exclude: >
(?x)^(
docs/_static/favicon.ico
)$
- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.123
rev: 0.0.124
hooks:
- id: check-dev-files
args:
Expand Down
177 changes: 18 additions & 159 deletions docs/adr/001/operators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,11 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
"tags": [
"remove-output"
]
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c7846d1422964a3a81627a061844c1b8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Propagating quantum numbers: 0%| | 0/24 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"import expertsystem as es\n",
"\n",
Expand Down Expand Up @@ -118,145 +105,7 @@
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 2.40.1 (20161225.0304)\n",
" -->\n",
"<!-- Title: %3 Pages: 1 -->\n",
"<svg width=\"404pt\" height=\"314pt\"\n",
" viewBox=\"0.00 0.00 404.00 314.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 310)\">\n",
"<title>%3</title>\n",
"<polygon fill=\"#ffffff\" stroke=\"transparent\" points=\"-4,4 -4,-310 400,-310 400,4 -4,4\"/>\n",
"<!-- g0_edge0 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>g0_edge0</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-68.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">0: p</text>\n",
"</g>\n",
"<!-- g0_edge1 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>g0_edge1</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-122.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">1: p~</text>\n",
"</g>\n",
"<!-- g0_edge2 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>g0_edge2</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-14.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">2: eta</text>\n",
"</g>\n",
"<!-- g0_edge&#45;1 -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>g0_edge&#45;1</title>\n",
"<text text-anchor=\"middle\" x=\"41.5\" y=\"-107.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">&#45;1: J/psi(1S)</text>\n",
"</g>\n",
"<!-- g0_node0 -->\n",
"<g id=\"node5\" class=\"node\">\n",
"<title>g0_node0</title>\n",
"<text text-anchor=\"middle\" x=\"139.5\" y=\"-107.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">P=1</text>\n",
"</g>\n",
"<!-- g0_edge&#45;1&#45;&gt;g0_node0 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>g0_edge&#45;1&#45;&gt;g0_node0</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M83.0608,-111C95.7898,-111 109.2044,-111 119.7604,-111\"/>\n",
"</g>\n",
"<!-- g0_node0&#45;&gt;g0_edge1 -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>g0_node0&#45;&gt;g0_edge1</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M159.3654,-112.2789C202.5053,-115.0561 304.5228,-121.6238 349.9738,-124.5498\"/>\n",
"</g>\n",
"<!-- g0_node1 -->\n",
"<g id=\"node6\" class=\"node\">\n",
"<title>g0_node1</title>\n",
"<text text-anchor=\"middle\" x=\"290\" y=\"-68.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">P=&#45;1</text>\n",
"</g>\n",
"<!-- g0_node0&#45;&gt;g0_node1 -->\n",
"<g id=\"edge5\" class=\"edge\">\n",
"<title>g0_node0&#45;&gt;g0_node1</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M159.1762,-103.0661C164.8719,-100.9304 171.1356,-98.7342 177,-97 208.0209,-87.8267 244.7174,-80.3036 267.6812,-75.9833\"/>\n",
"<text text-anchor=\"middle\" x=\"213.5\" y=\"-100.8\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">3: N(1440)+</text>\n",
"</g>\n",
"<!-- g0_node1&#45;&gt;g0_edge0 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>g0_node1&#45;&gt;g0_edge0</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M312.1085,-72C324.9954,-72 341.0851,-72 353.4158,-72\"/>\n",
"</g>\n",
"<!-- g0_node1&#45;&gt;g0_edge2 -->\n",
"<g id=\"edge4\" class=\"edge\">\n",
"<title>g0_node1&#45;&gt;g0_edge2</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M312.1085,-57.529C323.4681,-50.0936 337.3162,-41.0294 348.8847,-33.4573\"/>\n",
"</g>\n",
"<!-- g1_edge0 -->\n",
"<g id=\"node7\" class=\"node\">\n",
"<title>g1_edge0</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-284.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">0: p</text>\n",
"</g>\n",
"<!-- g1_edge1 -->\n",
"<g id=\"node8\" class=\"node\">\n",
"<title>g1_edge1</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-230.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">1: p~</text>\n",
"</g>\n",
"<!-- g1_edge2 -->\n",
"<g id=\"node9\" class=\"node\">\n",
"<title>g1_edge2</title>\n",
"<text text-anchor=\"middle\" x=\"372.5\" y=\"-176.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">2: eta</text>\n",
"</g>\n",
"<!-- g1_edge&#45;1 -->\n",
"<g id=\"node10\" class=\"node\">\n",
"<title>g1_edge&#45;1</title>\n",
"<text text-anchor=\"middle\" x=\"41.5\" y=\"-263.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">&#45;1: J/psi(1S)</text>\n",
"</g>\n",
"<!-- g1_node0 -->\n",
"<g id=\"node11\" class=\"node\">\n",
"<title>g1_node0</title>\n",
"<text text-anchor=\"middle\" x=\"139.5\" y=\"-263.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">P=1</text>\n",
"</g>\n",
"<!-- g1_edge&#45;1&#45;&gt;g1_node0 -->\n",
"<g id=\"edge6\" class=\"edge\">\n",
"<title>g1_edge&#45;1&#45;&gt;g1_node0</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M83.0608,-267C95.7898,-267 109.2044,-267 119.7604,-267\"/>\n",
"</g>\n",
"<!-- g1_node0&#45;&gt;g1_edge0 -->\n",
"<g id=\"edge7\" class=\"edge\">\n",
"<title>g1_node0&#45;&gt;g1_edge0</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M159.2847,-271.1259C164.982,-272.1963 171.2196,-273.2559 177,-274 241.2927,-282.2758 318.157,-285.9873 353.281,-287.3448\"/>\n",
"</g>\n",
"<!-- g1_node1 -->\n",
"<g id=\"node12\" class=\"node\">\n",
"<title>g1_node1</title>\n",
"<text text-anchor=\"middle\" x=\"290\" y=\"-230.3\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">P=&#45;1</text>\n",
"</g>\n",
"<!-- g1_node0&#45;&gt;g1_node1 -->\n",
"<g id=\"edge10\" class=\"edge\">\n",
"<title>g1_node0&#45;&gt;g1_node1</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M159.1752,-262.6858C187.2217,-256.5361 238.5394,-245.2837 267.8741,-238.8515\"/>\n",
"<text text-anchor=\"middle\" x=\"213.5\" y=\"-261.8\" font-family=\"Times,serif\" font-size=\"14.00\" fill=\"#000000\">3: N(1440)~&#45;</text>\n",
"</g>\n",
"<!-- g1_node1&#45;&gt;g1_edge1 -->\n",
"<g id=\"edge8\" class=\"edge\">\n",
"<title>g1_node1&#45;&gt;g1_edge1</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M312.1085,-234C323.7545,-234 338.016,-234 349.7552,-234\"/>\n",
"</g>\n",
"<!-- g1_node1&#45;&gt;g1_edge2 -->\n",
"<g id=\"edge9\" class=\"edge\">\n",
"<title>g1_node1&#45;&gt;g1_edge2</title>\n",
"<path fill=\"none\" stroke=\"#000000\" d=\"M312.1085,-219.529C323.4681,-212.0936 337.3162,-203.0294 348.8847,-195.4573\"/>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.files.Source at 0x7f819846f4f0>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"import graphviz\n",
"\n",
Expand All @@ -265,11 +114,20 @@
"graphviz.Source(dot)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"![](https://user-images.githubusercontent.com/29308176/164985188-dbac5fdb-6149-409a-9975-bb2dfb074e57.svg)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
"tags": [
"keep_output"
]
},
"outputs": [
{
Expand Down Expand Up @@ -321,7 +179,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
"tags": [
"keep_output"
]
},
"outputs": [
{
Expand Down Expand Up @@ -538,7 +398,6 @@
}
],
"metadata": {
"keep_output": true,
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand Down
Loading

0 comments on commit 2281d73

Please sign in to comment.