Skip to content

Commit 8be0b52

Browse files
authored
Fix dims for ultraspherical/jacobi transforms (#225)
* Fix dims for ultraspherical/jacobi transforms * Create downstream.yml
1 parent 32b28cf commit 8be0b52

File tree

4 files changed

+74
-3
lines changed

4 files changed

+74
-3
lines changed

.github/workflows/downstream.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: IntegrationTest
2+
on:
3+
push:
4+
branches: [main]
5+
tags: [v*]
6+
pull_request:
7+
paths-ignore:
8+
- 'LICENSE'
9+
- 'README.md'
10+
- '.github/workflows/TagBot.yml'
11+
12+
jobs:
13+
pre_job:
14+
# continue-on-error: true # Uncomment once integration is finished
15+
runs-on: ubuntu-latest
16+
# Map a step output to a job output
17+
outputs:
18+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
19+
steps:
20+
- id: skip_check
21+
uses: fkirc/skip-duplicate-actions@v5
22+
test:
23+
needs: pre_job
24+
if: needs.pre_job.outputs.should_skip != 'true'
25+
name: ${{ matrix.package.group }}/${{ matrix.package.repo }}/${{ matrix.julia-version }}
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
julia-version: ['1']
31+
os: [ubuntu-latest]
32+
package:
33+
- {repo: HarmonicOrthogonalPolynomials.jl, group: JuliaApproximation}
34+
- {repo: MultivariateOrthogonalPolynomials.jl, group: JuliaApproximation}
35+
- {repo: SemiclassicalOrthogonalPolynomials.jl, group: JuliaApproximation}
36+
- {repo: PiecewiseOrthogonalPolynomials.jl, group: JuliaApproximation}
37+
- {repo: SingularIntegrals.jl, group: JuliaApproximation}
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: julia-actions/setup-julia@v2
41+
with:
42+
version: ${{ matrix.julia-version }}
43+
arch: x64
44+
- uses: julia-actions/julia-buildpkg@latest
45+
- name: Clone Downstream
46+
uses: actions/checkout@v4
47+
with:
48+
repository: ${{ matrix.package.group }}/${{ matrix.package.repo }}
49+
path: downstream
50+
- name: Load this and run the downstream tests
51+
shell: julia --color=yes --project=downstream {0}
52+
run: |
53+
using Pkg
54+
try
55+
# force it to use this PR's version of the package
56+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
57+
Pkg.update()
58+
Pkg.test(; coverage = true) # resolver may fail with test time deps
59+
catch err
60+
err isa Pkg.Resolve.ResolverError || rethrow()
61+
# If we can't resolve that means this is incompatible by SemVer and this is fine
62+
# It means we marked this as a breaking change, so we don't need to worry about
63+
# Mistakenly introducing a breaking change, as we have intentionally made one
64+
@info "Not compatible with this release. No problem." exception=err
65+
exit(0) # Exit immediately, as a success
66+
end
67+
- uses: julia-actions/julia-processcoverage@v1
68+
- uses: codecov/codecov-action@v5
69+
with:
70+
token: ${{ secrets.CODECOV_TOKEN }}
71+
files: lcov.info

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClassicalOrthogonalPolynomials"
22
uuid = "b30e2e7b-c4ee-47da-9d5f-2c5c27239acd"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.14.1"
4+
version = "0.14.2"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/classical/jacobi.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ grid(P::AbstractJacobi{T}, n::Integer) where T = ChebyshevGrid{1,T}(n)
294294
plotgrid(P::AbstractJacobi{T}, n::Integer) where T = ChebyshevGrid{2,T}(min(40n, MAX_PLOT_POINTS))
295295

296296
plan_transform(::AbstractJacobi{T}, szs::NTuple{N,Int}, dims...) where {T,N} = error("Override")
297-
plan_transform(P::Jacobi{T}, szs::NTuple{N,Int}, dims...) where {T,N} = JacobiTransformPlan(FastTransforms.plan_th_cheb2jac!(T, szs, P.a, P.b, dims), plan_chebyshevtransform(T, szs, dims...))
297+
plan_transform(P::Jacobi{T}, szs::NTuple{N,Int}, dims...) where {T,N} = JacobiTransformPlan(FastTransforms.plan_th_cheb2jac!(T, szs, P.a, P.b, dims...), plan_chebyshevtransform(T, szs, dims...))
298298

299299
ldiv(P::Jacobi{V}, f::Inclusion{T}) where {T,V} = _op_ldiv(P, f)
300300
ldiv(P::Jacobi{V}, f::AbstractQuasiFill{T,1}) where {T,V} = _op_ldiv(P, f)

src/classical/ultraspherical.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ultraspherical(λ, d::AbstractInterval{T}) where T = Ultraspherical{float(promot
7373
# transforms
7474
###
7575

76-
plan_transform(P::Ultraspherical{T}, szs::NTuple{N,Int}, dims...) where {T,N} = JacobiTransformPlan(FastTransforms.plan_th_ultra2ultra!(T, szs, one(P.λ), P.λ, dims), plan_chebyshevutransform(T, szs, dims...))
76+
plan_transform(P::Ultraspherical{T}, szs::NTuple{N,Int}, dims...) where {T,N} = JacobiTransformPlan(FastTransforms.plan_th_ultra2ultra!(T, szs, one(P.λ), P.λ, dims...), plan_chebyshevutransform(T, szs, dims...))
7777

7878
###
7979
# interrelationships

0 commit comments

Comments
 (0)