-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move domain-specific functionality to subpackages (#240)
* Move domain-specific functionality to subpackages * Add FastMakie.jl * Update tests * Add subpackage CI * run SciMLStyle * Add sysimage example * Update documentation * Rerun notebooks
- Loading branch information
Showing
166 changed files
with
7,438 additions
and
7,419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI - FastMakie | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'FastTabular/**' | ||
- 'FastText/**' | ||
- 'FastVision/**' | ||
- '*.md' | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
arch: | ||
- x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Dev FastAI | ||
run: | | ||
julia --color=yes --project=./FastMakie -e 'using Pkg; pkg"dev ."' | ||
shell: bash | ||
- name: Dev test dependencies | ||
run: | | ||
julia --color=yes --project=./FastMakie/test -e 'using Pkg; pkg"dev . ./FastMakie "' | ||
shell: bash | ||
- uses: julia-actions/julia-buildpkg@latest | ||
with: | ||
project: './FastMakie/' | ||
- name: Run tests | ||
run: | | ||
julia --color=yes --depwarn=yes --project=./FastMakie/test -e 'include("FastMakie/test/runtests.jl")' | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: CI - FastTabular | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'FastMakie/**' | ||
- 'FastText/**' | ||
- 'FastVision/**' | ||
- '*.md' | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
arch: | ||
- x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Dev FastAI | ||
run: | | ||
julia --color=yes --project=./FastTabular -e 'using Pkg; pkg"dev ."' | ||
shell: bash | ||
- name: Dev test dependencies | ||
run: | | ||
julia --color=yes --project=./FastTabular/test -e 'using Pkg; pkg"dev . ./FastTabular "' | ||
shell: bash | ||
- uses: julia-actions/julia-buildpkg@latest | ||
with: | ||
project: './FastTabular/' | ||
- name: Run tests | ||
run: | | ||
julia --color=yes --depwarn=yes --project=./FastTabular/test -e 'include("FastTabular/test/runtests.jl")' | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI - FastText | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'FastMakie/**' | ||
- 'FastTabular/**' | ||
- 'FastVision/**' | ||
- '*.md' | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
arch: | ||
- x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Dev FastAI | ||
run: | | ||
julia --color=yes --project=./FastText -e 'using Pkg; pkg"dev ."' | ||
shell: bash | ||
- name: Dev test dependencies | ||
run: | | ||
julia --color=yes --project=./FastText/test -e 'using Pkg; pkg"dev . ./FastText "' | ||
shell: bash | ||
- uses: julia-actions/julia-buildpkg@latest | ||
with: | ||
project: './FastText/' | ||
- name: Run tests | ||
run: | | ||
julia --color=yes --depwarn=yes --project=./FastText/test -e 'include("FastText/test/runtests.jl")' | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: CI - FastVision | ||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'FastTabular/**' | ||
- 'FastText/**' | ||
- '*.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'FastTabular/**' | ||
- 'FastText/**' | ||
- '*.md' | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
arch: | ||
- x64 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- name: Dev FastAI | ||
run: | | ||
julia --color=yes --project=./FastVision -e 'using Pkg; pkg"dev ."' | ||
shell: bash | ||
- name: Dev test dependencies | ||
run: | | ||
julia --color=yes --project=./FastVision/test -e 'using Pkg; pkg"dev . ./FastVision ./FastMakie"' | ||
shell: bash | ||
- uses: julia-actions/julia-buildpkg@latest | ||
with: | ||
project: './FastVision/' | ||
- name: Run tests | ||
run: | | ||
julia --color=yes --depwarn=yes --project=./FastVision/test -e 'include("FastVision/test/runtests.jl")' | ||
continue-on-error: ${{ matrix.version == 'nightly' }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Documentation - PR | ||
|
||
on: | ||
- pr | ||
|
||
jobs: | ||
pollen: | ||
name: "Pollen - test documentation build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: pollen | ||
path: pollen | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1.7' | ||
- name: "Install package and docs dependencies" | ||
run: | | ||
julia --color=yes --project=./docs -e 'using Pkg; pkg"dev . ./FastVision ./FastMakie ./FastTabular https://github.com/c42f/JuliaSyntax.jl https://github.com/lorenzoh/ModuleInfo.jl https://github.com/lorenzoh/Pollen.jl"; Pkg.instantiate();' | ||
- name: Build | ||
run: | | ||
julia --color=yes --project=./docs ./docs/make.jl ./pollen/dev/ | ||
- name: Deploy | ||
run: | | ||
cd pollen | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "Build documentation data (Pollen.jl)" | ||
git push | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: pollenstatic | ||
name: Documentation - Deploy | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ test/Manifest.toml | |
docs/Manifest.toml | ||
development/** | ||
Manifest.toml | ||
**/*.jld2 | ||
**/*.jld2 | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name = "FastMakie" | ||
uuid = "ca994201-3d74-4fad-8816-f8bc5449c7c3" | ||
authors = ["Lorenz Ohly", "Julia Community"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
FastAI = "5d0beca9-ade8-49ae-ad0b-a3cf890e669f" | ||
InlineTest = "bd334432-b1e7-49c7-a2dc-dd9149e4ebd6" | ||
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" | ||
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" | ||
|
||
[compat] | ||
FastAI = "0.5" | ||
Makie = "0.17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module FastMakie | ||
|
||
import FastAI: FastAI, createhandle, showblock!, AbstractBlock, OneHotTensor, | ||
OneHotTensorMulti, | ||
Label, LabelMulti, ShowBackend, ShowMakie, axiskwargs, showblock, | ||
showblocks!, showblocks | ||
using InlineTest | ||
import Makie | ||
import NNlib: softmax, sigmoid | ||
|
||
include("axis.jl") | ||
include("showmakie.jl") | ||
include("blocks.jl") | ||
include("lrfind.jl") | ||
|
||
function __init__() | ||
# When loaded, set default show backend | ||
FastAI.SHOW_BACKEND[] = ShowMakie() | ||
end | ||
|
||
end |
Oops, something went wrong.