Skip to content

Commit

Permalink
Fixed filenot found error.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Oct 31, 2024
1 parent 4769e43 commit 8d4943d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion demo/Pin_cell.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"outputs": [],
"source": [
"import montepy\n",
"import os\n",
"montepy.__version__"
]
},
Expand Down Expand Up @@ -94,6 +95,9 @@
"metadata": {},
"outputs": [],
"source": [
"#make folder\n",
"os.mkdir(\"parametric\")\n",
"\n",
"fuel_wall = problem.surfaces[1]\n",
"gap_wall = problem.surfaces[2]\n",
"clad_wall = problem.surfaces[3]\n",
Expand All @@ -112,6 +116,14 @@
" plane.location = (pitch / 2) * (-1 if plane.location < 0 else 1)\n",
" problem.write_to_file(f\"parametric/pin_cell_{pin_radius}r_{pitch}p.imcnp\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9f75012f-d2bc-40c6-9167-08205c4a2395",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -130,7 +142,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 8d4943d

Please sign in to comment.