Skip to content

Commit

Permalink
import
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Nov 17, 2023
1 parent 122db97 commit 29c7989
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/EarlyMars.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"data": {
"text/plain": [
"<threadpoolctl.threadpool_limits at 0x1083dd3d0>"
"<threadpoolctl.threadpool_limits at 0x107dc9150>"
]
},
"execution_count": 1,
Expand All @@ -32,7 +32,9 @@
"from matplotlib import pyplot as plt\n",
"from threadpoolctl import threadpool_limits\n",
"\n",
"from clima import AdiabatClimate, ClimaException\n",
"# from clima import AdiabatClimate # If you installed clima alone from source\n",
"from photochem.clima import AdiabatClimate # If you installed photochem via conda\n",
"\n",
"threadpool_limits(limits=4) # set number of threads"
]
},
Expand Down
5 changes: 3 additions & 2 deletions examples/Tutorial_AdiabatClimate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"data": {
"text/plain": [
"<threadpoolctl.threadpool_limits at 0x12728cc10>"
"<threadpoolctl.threadpool_limits at 0x11e997190>"
]
},
"execution_count": 1,
Expand All @@ -33,7 +33,8 @@
"from matplotlib import pyplot as plt\n",
"from scipy import constants as const\n",
"\n",
"from clima import AdiabatClimate\n",
"# from clima import AdiabatClimate # If you installed clima alone from source\n",
"from photochem.clima import AdiabatClimate # If you installed photochem via conda\n",
"\n",
"from threadpoolctl import threadpool_limits\n",
"threadpool_limits(limits=4) # set number of threads. Must come after import of AdiabatClimate"
Expand Down

0 comments on commit 29c7989

Please sign in to comment.