Skip to content

Commit

Permalink
ci: simplify usage example to speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed May 7, 2021
1 parent 982aa21 commit 0737f49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/usage/step2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"\n",
"from tensorwaves.data import generate_phsp\n",
"\n",
"phsp_sample = generate_phsp(300_000, model.adapter.reaction_info)\n",
"phsp_sample = generate_phsp(100_000, model.adapter.reaction_info)\n",
"pd.DataFrame(phsp_sample.to_pandas())"
]
},
Expand Down Expand Up @@ -190,7 +190,7 @@
"from tensorwaves.data import generate_data\n",
"\n",
"data_sample = generate_data(\n",
" size=30_000,\n",
" size=10_000,\n",
" reaction_info=model.adapter.reaction_info,\n",
" data_transformer=data_converter,\n",
" intensity=intensity,\n",
Expand Down
17 changes: 12 additions & 5 deletions docs/usage/step3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,9 @@
"initial_parameters = {\n",
" \"C[J/\\\\psi(1S) \\\\to f_{0}(1500)_{0} \\\\gamma_{+1};f_{0}(1500) \\\\to \\\\pi^{0}_{0} \\\\pi^{0}_{0}]\": 1.0\n",
" + 0.0j,\n",
" \"Gamma_f(0)(500)\": 0.3,\n",
" \"Gamma_f(0)(980)\": 0.1,\n",
" \"m_f(0)(1710)\": 1.75,\n",
" \"Gamma_f(0)(1710)\": 0.2,\n",
" \"Gamma_f(0)(980)\": 0.15,\n",
" \"Gamma_f(0)(1500)\": 0.2,\n",
" \"m_f(0)(1710)\": 1.78,\n",
"}"
]
},
Expand Down Expand Up @@ -248,7 +247,15 @@
"source": [
"from tensorwaves.model import LambdifiedFunction\n",
"\n",
"intensity = LambdifiedFunction(sympy_model, backend=\"numpy\")\n",
"intensity = LambdifiedFunction(sympy_model, backend=\"numpy\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"intensity.update_parameters(initial_parameters)\n",
"compare_model(\"m_12\", data_set, phsp_set, intensity)"
]
Expand Down

0 comments on commit 0737f49

Please sign in to comment.