Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 16, 2024
1 parent 48eb350 commit 6728c02
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 50 deletions.
100 changes: 51 additions & 49 deletions examples/example.ipynb
Original file line number Diff line number Diff line change
@@ -1,52 +1,54 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "initial_id",
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from geant4_python_application import Application, basic_gdml\n",
"\n",
"app = Application()\n",
"\n",
"app.setup_manager(n_threads=0)\n",
"app.setup_physics()\n",
"app.setup_detector(gdml=basic_gdml)\n",
"app.setup_action()\n",
"\n",
"app.initialize()\n",
"\n",
"print(f\"Random seed: {app.random_seed}\")\n",
"\n",
"events = app.run(n_events=100)\n",
"\n",
"print(events)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "initial_id",
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"from geant4_python_application import Application, basic_gdml\n",
"\n",
"app = Application()\n",
"\n",
"app.setup_manager(n_threads=0)\n",
"app.setup_physics()\n",
"app.setup_detector(gdml=basic_gdml)\n",
"app.setup_action()\n",
"\n",
"app.initialize()\n",
"\n",
"print(f\"Random seed: {app.random_seed}\")\n",
"\n",
"events = app.run(n_events=100)\n",
"\n",
"print(events)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"nbformat": 4,
"nbformat_minor": 5
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ struct Builders {
StepPositionBuilder<double> step_position;
StepMomentumBuilder<double> step_momentum;

Builders(const std::unordered_set<std::string>& fields) : fields(fields){};
Builders(const std::unordered_set<std::string>& fields) : fields(fields) {};
};


Expand Down

0 comments on commit 6728c02

Please sign in to comment.