Skip to content

Commit

Permalink
Update example tester
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Feb 18, 2024
1 parent a1dac8e commit 5e5a996
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions examples/coulomb_blockade/tester.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Global parameters"
"# Data source"
]
},
{
Expand All @@ -38,10 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
"DATA_DIR = Path(\"pentacene/data\")\n",
"NPROCS = 1\n",
"OMP_NUM_THREADS = 1\n",
"NUMBA_NUM_THREADS = NPROCS"
"DATA_DIR = Path(\"pentacene/data\")"
]
},
{
Expand Down Expand Up @@ -183,13 +180,20 @@
"metadata": {},
"outputs": [],
"source": [
"h, m, s = 1, 0, 0\n",
"\n",
"NPROCS = 1\n",
"OMP_NUM_THREADS = 1\n",
"NUMBA_NUM_THREADS = NPROCS\n",
"\n",
"metadata = {\n",
" \"options\": {\n",
" \"withmpi\": False,\n",
" \"resources\": {\n",
" \"num_machines\": 1,\n",
" \"num_mpiprocs_per_machine\": NPROCS,\n",
" },\n",
" \"max_wallclock_seconds\": h * 3600 + m * 60 + s,\n",
" \"environment_variables\": {\n",
" \"OMP_NUM_THREADS\": OMP_NUM_THREADS,\n",
" \"NUMBA_NUM_THREADS\": NUMBA_NUM_THREADS,\n",
Expand Down Expand Up @@ -223,6 +227,7 @@
" \"structure\": device_structure,\n",
" \"kpoints\": device_kpoints,\n",
" \"parameters\": device_parameters,\n",
" \"metadata\": metadata,\n",
" },\n",
" },\n",
" \"scattering\": {\n",
Expand Down

0 comments on commit 5e5a996

Please sign in to comment.