Skip to content

Commit 22fbdd4

Browse files
committed
fix tests for Julia 1.12
1 parent 9254fa4 commit 22fbdd4

12 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
version:
2121
- '1.10'
2222
- '1.11'
23+
- '1.12'
2324
# - 'nightly'
2425
os:
2526
- ubuntu-latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This package implements a few polynomial basis types, and convenience methods fo
99
* Trigonometric polynomials
1010
* Complex and real spherical and solid harmonics
1111
* A few quantum chemistry (atomic orbitals) basis sets
12+
* Interpolate a basis onto splines
1213
* Utilities to recombine them into (tensor) product or compressed basis sets
1314

1415
We also aim to provide full `Lux.jl` integration. A possible application of this might be to implement various flavours of equivariant neural networks and related models.

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Polynomials4ML
22
using BenchmarkTools
33
using LuxCore, Random, Zygote
44

5-
const P4ML = Polynomials4ML
5+
import Polynomials4ML as P4ML
66

77

88
SUITE = BenchmarkGroup()

profile/ace/profile_sparseprodpool.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using BenchmarkTools, Test, Polynomials4ML, ChainRulesCore
22
using Polynomials4ML: PooledSparseProduct, evaluate, evaluate!
33
using LuxCore, Random, Zygote
44

5-
P4ML = Polynomials4ML
5+
import Polynomials4ML as P4ML
66

77
##
88

profile/ace/profile_sparsesymmprod.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using Random
66
using ChainRulesCore: rrule
77
# using Zygote
88

9-
P4ML = Polynomials4ML
9+
import Polynomials4ML as P4ML
1010

1111
##
1212

profile/atomicorbitalradials/profile_gaussian.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using ObjectPools
88
using Random
99
using LuxCore
1010

11-
P4ML = Polynomials4ML
11+
import Polynomials4ML as P4ML
1212

1313
@info("Batched Implementation")
1414
@info("evaluate, evaluated, evaluated2, evaluated_dp")

profile/atomicorbitalradials/profile_slater.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using ObjectPools
88
using Random
99
using LuxCore
1010

11-
P4ML = Polynomials4ML
11+
import Polynomials4ML as P4ML
1212

1313
@info("Batched Implementation")
1414
@info("evaluate, evaluated, evaluated2, evaluated_dp")

profile/atomicorbitalradials/profile_stong.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using ObjectPools
88
using Random
99
using LuxCore
1010

11-
P4ML = Polynomials4ML
11+
import Polynomials4ML as P4ML
1212

1313
@info("Batched Implementation")
1414
@info("evaluate, evaluated, evaluated2")

test/test_linear.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ using Test, Polynomials4ML, Random, LuxCore
22
using LinearAlgebra, Optimisers, ChainRulesCore, Zygote
33
using ACEbase.Testing: println_slim, print_tf, fdtest
44

5-
P4ML = Polynomials4ML
5+
import Polynomials4ML as P4ML
6+
67
@info("Testing LinearLayer")
78

89

test/test_mono.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ basis = MonoBasis(N)
1111
@info(" correctness")
1212
mm = natural_indices(basis)
1313
for ntest = 1:30
14-
local x, P
14+
local x, P, P2
1515
x = 2*π * rand()
1616
P = basis(x)
1717
P2 = [ x^(m.n) for m in mm ]

0 commit comments

Comments
 (0)