Commit bc1a55ec authored by Victor's avatar Victor

added mirroring with github, and thus .yaml file

parent 82849c2e
Pipeline #74890 passed with stage
in 32 minutes and 49 seconds
name: Documentation
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.4'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: julia --project=docs/ docs/make.jl
......@@ -19,4 +19,5 @@ makedocs(sitename="ABMEv.jl",
# "contributing.md",
],)
# deploydocs(repo= "gitlab.ethz.ch:bvictor/abmev.wiki.git",)
deploydocs(repo = "github.com/vboussange/ABMEv.jl",
deps = Deps.pip("mkdocs", "python-markdown-math"),)
......@@ -86,7 +86,11 @@ function interpolate_df(df,xlab,ylab,zlab)
sort!(df,[ylab,xlab])
xa = unique(df[xlab]); ya = unique(df[ylab])
A = reshape(df[zlab],length(xa),length(ya))
return DiversityFunction(xa,ya,interpolate((xa,ya),A,Gridded(Linear())))
if length(xa) > 1 && length(ya) > 1
return DiversityFunction(xa,ya,interpolate((xa,ya),A,Gridded(Linear())))
else
return DiversityFunction(xa,ya,A)
end
end
import DataFrames.groupby
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment