Skip to content

Commit

Permalink
General maintenance (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 20, 2024
1 parent 2e5caad commit 0adc51c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

defaults:
run:
shell: bash -el {0}
shell: bash -l {0}

env:
PACKAGE: "geoviews"
Expand All @@ -35,14 +35,14 @@ jobs:
name: Pixi lock
runs-on: ubuntu-latest
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_lock@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0

conda_build:
name: Build Conda
needs: [pixi_lock]
runs-on: "ubuntu-latest"
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
with:
environments: "build"
install: false
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
needs: [pixi_lock]
runs-on: "ubuntu-latest"
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
with:
environments: "build"
install: false
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
needs: [pixi_lock]
runs-on: "ubuntu-latest"
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
with:
environments: "build"
download-data: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

defaults:
run:
shell: bash -el {0}
shell: bash -l {0}

env:
DISPLAY: ":99.0"
Expand All @@ -33,7 +33,7 @@ jobs:
name: Pixi lock
runs-on: ubuntu-latest
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_lock@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0

docs_build:
name: Build Documentation
Expand All @@ -43,7 +43,7 @@ jobs:
outputs:
tag: ${{ steps.vars.outputs.tag }}
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
with:
environments: docs
- name: Build documentation
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_lock@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0
- name: Upload lock-file to S3
if: '!github.event.pull_request.head.repo.fork'
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concurrency:

defaults:
run:
shell: bash -el {0}
shell: bash -l {0}

env:
DISPLAY: ":99.0"
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
name: Pixi lock
runs-on: ubuntu-latest
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_lock@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_lock@v0
with:
cache: ${{ github.event.inputs.cache == 'true' || github.event.inputs.cache == '' }}

Expand All @@ -120,7 +120,7 @@ jobs:
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
timeout-minutes: 120
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
if: needs.setup.outputs.code_change == 'true'
with:
environments: ${{ matrix.environment }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
environment: ["test-core"]
timeout-minutes: 120
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
- uses: holoviz-dev/holoviz_tasks/pixi_install@v0
if: needs.setup.outputs.code_change == 'true'
with:
environments: ${{ matrix.environment }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: check-json
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.9
rev: v0.6.6
hooks:
- id: ruff
files: geoviews/
Expand Down
8 changes: 4 additions & 4 deletions geoviews/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def project_extents(extents, src_proj, dest_proj, tol=1e-6):

# Limit latitudes
cy1, cy2 = src_proj.y_limits
if y1 < cy1: y1 = cy1
if y2 > cy2: y2 = cy2
y1 = max(y1, cy1)
y2 = min(y2, cy2)

# Offset with tolerances
x1 += tol
Expand All @@ -79,8 +79,8 @@ def project_extents(extents, src_proj, dest_proj, tol=1e-6):
lons = wrap_lons(np.linspace(x1, x2, 10000), -180., 360.)
x1, x2 = lons.min(), lons.max()
else:
if x1 < cx1: x1 = cx1
if x2 > cx2: x2 = cx2
x1 = max(x1, cx1)
x2 = min(x2, cx2)

domain_in_src_proj = Polygon([[x1, y1], [x2, y1],
[x2, y2], [x1, y2],
Expand Down

0 comments on commit 0adc51c

Please sign in to comment.