Skip to content
Open
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
40 changes: 24 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
push:
paths: # run CI/CD when the tests change, the dependencies change, or the version changes
- src/*
- ext/*
- test/*
- Project.toml
tags: "*"
pull_request: # run when pull requests are made
paths:
- src/*
- ext/*
- test/*
- Manifest.toml
- Project.toml
Expand All @@ -22,37 +24,43 @@ jobs:
fail-fast: false
matrix:
version:
- "1.11"
- "1.12"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
exclude:
- os: macOS-latest
arch: x64
include:
- os: macOS-latest
arch: aarch64
version: '1.12'
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
JULIA_IN_GITHUB_ACTION: true
JULIA_IN_GITHUB_ACTION_ON_MAC: ${{matrix.os}}
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
path: ~/.julia/packages
key: ${{ runner.os }}-julia-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
${{ runner.os }}-julia-
- uses: julia-actions/julia-buildpkg@v1

- name: Add CUDA stack (Linux only)
if: runner.os == 'Linux'
run: julia --project=. -e 'using Pkg; Pkg.add(["CUDA", "cuFFT"])'
- name: Add Metal (macOS only)
if: runner.os == 'macOS'
run: julia --project=. -e 'using Pkg; Pkg.add("Metal")'
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
env:
GROUP: ${{ runner.os == 'Linux' && 'CUDA' || runner.os == 'macOS' && 'Metal' || 'CPU' }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
13 changes: 8 additions & 5 deletions .github/workflows/docsBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,25 @@ on:
paths: # rebuild the docs when the version changes or the docs change
- docs/*
- Project.toml
- src/*
pull_request: # run when pull requests are made
paths:
- docs/*
- Project.toml
- src/*
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.7'
version: '1.12'
- name: Install dependencies
run: |
sudo apt install libxt6 libxrender1 libxext6 libqt5widgets5
sudo apt-get update
sudo apt-get install -y --fix-missing libxt6 libxrender1 libxext6 libqt5widgets5
- name: Instantiate
env:
PYTHON: ""
Expand All @@ -38,4 +41,4 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: julia --project=docs --code-coverage=user docs/make.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v6
20 changes: 13 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "1.2.0"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Expand All @@ -14,24 +15,30 @@ Wavelets = "29a6e085-ba6d-5f35-a997-948ac2efa89a"

[weakdeps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
cuFFT = "533571aa-0936-420e-b4be-9c66f5f626ca"
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"

[extensions]
CUDAExt = "CUDA"
CUDAExt = ["CUDA", "cuFFT"]
MetalExt = "Metal"

[compat]
AbstractFFTs = "1.0"
CUDA = "4, 5, 6"
AbstractFFTs = "1.5.0"
Adapt = "4.7.0"
CUDA = "6.1"
cuFFT = "6.1"
Documenter = "0.27, 1"
FFTW = "1.4"
Interpolations = "0.13, 0.14, 0.15, 0.16"
julia = "1.12"
LinearAlgebra = "1"
Metal = "1.10"
SpecialFunctions = "1.3, 2"
Wavelets = "0.9, 0.10"
julia = "1.9"


[extras]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Expand All @@ -42,5 +49,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Wavelets = "29a6e085-ba6d-5f35-a997-948ac2efa89a"

[targets]
test = ["Test", "FFTW", "Wavelets", "Interpolations", "LinearAlgebra",
"Logging", "Random", "Documenter", "CUDA", "BenchmarkTools"]
test = ["Test", "FFTW", "Wavelets", "Interpolations", "LinearAlgebra", "Logging", "Random", "Documenter", "BenchmarkTools"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ julia> res = cwt(f, c)
And now we make a scalogram to actually visualize these entries:

```julia
freqs = getMeanFreq(computeWavelets(n, c)[1])
freqs = getMeanFreq(n, c)
freqs[1] = 0
p2 = heatmap(t, freqs, log.(abs.(res).^2)', xlabel= "time (s)", ylabel="frequency (Hz)", colorbar=false, c=cgrad(:viridis, scale=:log10))
l = @layout [a{.3h};b{.7h}]
Expand Down
Loading
Loading