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

Correct kernel dying in notebook polar_plotting #664

Closed
wants to merge 31 commits into from
Closed
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
11 changes: 9 additions & 2 deletions .github/workflows/markdown-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: British-Oceanographic-Data-Centre/COAsT
ref: develop
ref: bug/kernel_died_notebook
path: external

- name: Prepare environment
Expand All @@ -37,9 +37,16 @@ jobs:
unzip COAsT_example_files.zip && mv COAsT_example_files ./example_scripts/notebook_tutorials/runnable_notebooks/general/example_files
mkdir -p ./example_scripts/notebook_tutorials/markdown/general
ls ./example_scripts/notebook_tutorials
pip install --upgrade pip
pip install .
sudo apt-get update
sudo apt-get update
sudo apt-get install -y libgeos-dev
pip install cartopy==0.21.0
pip install zarr
pip uninstall -y ipykernel
pip install ipykernel
pip uninstall -y jupyter
pip uninstall -y nbconvert
pip install nbconvert jupyter
mv config ./example_scripts/notebook_tutorials/runnable_notebooks/general/config
bash notebook_to_md.sh general
6 changes: 4 additions & 2 deletions coast/_utils/plot_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
import numpy as np
import pyproj
import scipy.interpolate as si
from tqdm import tqdm

# from tqdm import tqdm

from .logging_util import warn

Expand Down Expand Up @@ -456,7 +457,8 @@ def grid_angle(lon, lat):
"""
crs_wgs84 = pyproj.CRS("epsg:4326")
angle = np.zeros(lon.shape)
for j in tqdm(range(lon.shape[0] - 1)):
# for j in tqdm(range(lon.shape[0] - 1)):
for j in range(lon.shape[0] - 1):
for i in range(lon.shape[1] - 1):
crs_aeqd = make_projection(lon[j, i], lat[j, i])
transformer = pyproj.Transformer.from_crs(crs_wgs84, crs_aeqd)
Expand Down

This file was deleted.

Loading