Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bvictor
ABMEv
Commits
bc1a55ec
Commit
bc1a55ec
authored
Oct 09, 2020
by
Victor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added mirroring with github, and thus .yaml file
parent
82849c2e
Pipeline
#74890
passed with stage
in 32 minutes and 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
.github/workflows/documentation.yml
.github/workflows/documentation.yml
+23
-0
docs/make.jl
docs/make.jl
+2
-1
src/ABMEv_utils.jl
src/ABMEv_utils.jl
+5
-1
No files found.
.github/workflows/documentation.yml
0 → 100644
View file @
bc1a55ec
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
docs/make.jl
View file @
bc1a55ec
...
...
@@ -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"
),)
src/ABMEv_utils.jl
View file @
bc1a55ec
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment