Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Αdd threads_per_worker = 1 in dask clients #488

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Recipes/Along-slope-velocities.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
}
],
"source": [
"client = Client() \n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
}
],
"source": [
"client = Client()\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -954,7 +954,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.07]",
"display_name": "Python [conda env:analysis3-24.07] *",
"language": "python",
"name": "conda-env-analysis3-24.07-py"
},
Expand All @@ -968,7 +968,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Barotropic_Streamfunction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
}
],
"source": [
"client = dask.Client()\n",
"client = dask.Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -796,7 +796,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.01] *",
"display_name": "Python [conda env:analysis3-24.01]",
"language": "python",
"name": "conda-env-analysis3-24.01-py"
},
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Compare_SSH_model_obs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
}
],
"source": [
"client = Client()\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -1472,7 +1472,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.04] *",
"display_name": "Python [conda env:analysis3-24.04]",
"language": "python",
"name": "conda-env-analysis3-24.04-py"
},
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Compare_SST_SSS_TemperatureSalinity_to_WOA13.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
}
],
"source": [
"client = Client()\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -1708,7 +1708,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion Recipes/Cross-contour_transport.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
}
],
"source": [
"client = Client()\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down
2 changes: 1 addition & 1 deletion Recipes/Cross-slope_section.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
}
],
"source": [
"client = Client() \n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Eddy-Mean_Kinetic_Energy_Decomposition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -1937,7 +1937,7 @@
}
},
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.04] *",
"display_name": "Python [conda env:analysis3-24.04]",
"language": "python",
"name": "conda-env-analysis3-24.04-py"
},
Expand Down
12 changes: 7 additions & 5 deletions Recipes/Equatorial_thermal_and_zonal_velocity_structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@
"import numpy as np\n",
"import xarray as xr\n",
"import sys, os\n",
"from dask.distributed import Client\n",
"\n",
"import warnings\n",
"warnings.simplefilter(\"ignore\") \n",
"\n",
"import logging\n",
"logging.getLogger('flox').setLevel(logging.WARNING)\n",
"from dask.distributed import Client"
"logging.getLogger('flox').setLevel(logging.WARNING)"
]
},
{
Expand Down Expand Up @@ -2374,7 +2376,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -3239,7 +3241,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.07]",
"display_name": "Python [conda env:analysis3-24.07] *",
"language": "python",
"name": "conda-env-analysis3-24.07-py"
},
Expand All @@ -3253,7 +3255,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
},
"name": "Equatorial_Pacific.ipynb"
},
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Extract_Variables_at_Ocean_Bottom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -6646,7 +6646,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.04] *",
"display_name": "Python [conda env:analysis3-24.04]",
"language": "python",
"name": "conda-env-analysis3-24.04-py"
},
Expand Down
2 changes: 1 addition & 1 deletion Recipes/Geostrophic_Velocities_from_Sea_Level.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Hovmoller_Temperature_Depth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -2587,7 +2587,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.10.16"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions Recipes/Meridional_Overturning_Circulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@
}
],
"source": [
"client = Client(threads_per_worker=1)\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down Expand Up @@ -2034,7 +2034,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-24.01] *",
"display_name": "Python [conda env:analysis3-24.01]",
"language": "python",
"name": "conda-env-analysis3-24.01-py"
},
Expand Down
2 changes: 1 addition & 1 deletion Recipes/Meridional_heat_transport.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
],
"source": [
"from dask.distributed import Client\n",
"client = Client()\n",
"client = Client(threads_per_worker = 1)\n",
"client"
]
},
Expand Down
Loading
Loading