-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize into submodules; finish docs (#10)
* move all ebm stuff to dedicated submodule * add a todo folder * rename limits function * breaking change * define default processes outside submodule * finish (?) new docs centered on submodules * need to do the default process thingy outside module scope * allow start for sigmoid process * better Tanh docstring * mass rename SigmoidProcess * improve sigmoid process * great, using `init` works! * finish first 3 subsections of tutorial * finish tutorial * finish globalmeanebm page * show default variables in docs * delete .gitub; use org wide * fix incorrect function called in ice * add back the .github repo * fix tests * fix examples * fix all docs problems * add submodule to doc build
- Loading branch information
Showing
36 changed files
with
374 additions
and
442 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 |
---|---|---|
@@ -1,27 +1,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
name: Problem/bug report | ||
about: Create a report for incorrect/unexpected/erroring behavior | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
**Describe the problem** | ||
|
||
A clear and concise description of what the problem is, and what you were expecting to happen instead. | ||
|
||
**Minimal Working Example** | ||
|
||
Please provide a piece of code that leads to the bug you encounter. | ||
|
||
If the code is **runnable**, it will help us identify the problem faster. | ||
This code should be **runnable**, **self-contained**, and minimal. Remove all irrelevant dependencies | ||
and actively try to reduce the code to its smallest possible version. | ||
This will help us identify and fix the problem faster. | ||
|
||
**Package versions** | ||
|
||
Please provide the versions you use. To do this, run the code: | ||
```julia | ||
using Pkg | ||
Pkg.status([ | ||
"Package1", "Package2"]; # etc. | ||
import Pkg | ||
Pkg.status(["Package1", "Package2"]; # etc. | ||
mode = PKGMODE_MANIFEST | ||
) | ||
``` |
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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
name: CompatHelper | ||
|
||
on: | ||
schedule: | ||
- cron: '00 * * * *' | ||
|
||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
CompatHelper: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
julia-version: [1] | ||
julia-arch: [x86] | ||
os: [ubuntu-latest] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: julia-actions/setup-julia@latest | ||
- name: Check if Julia is already available in the PATH | ||
id: julia_in_path | ||
run: which julia | ||
continue-on-error: true | ||
- name: Install Julia, but only if it is not already available in the PATH | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia-version }} | ||
- name: Pkg.add("CompatHelper") | ||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")' | ||
- name: CompatHelper.main() | ||
version: '1' | ||
arch: ${{ runner.arch }} | ||
if: steps.julia_in_path.outcome != 'success' | ||
- name: "Add the General registry via Git" | ||
run: | | ||
import Pkg | ||
ENV["JULIA_PKG_SERVER"] = "" | ||
Pkg.Registry.add("General") | ||
shell: julia --color=yes {0} | ||
- name: "Install CompatHelper" | ||
run: | | ||
import Pkg | ||
name = "CompatHelper" | ||
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7" | ||
version = "3" | ||
Pkg.add(; name, uuid, version) | ||
shell: julia --color=yes {0} | ||
- name: "Run CompatHelper" | ||
run: | | ||
import CompatHelper | ||
CompatHelper.main() | ||
shell: julia --color=yes {0} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: julia -e 'using CompatHelper; CompatHelper.main()' | ||
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} |
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
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: CI | ||
name: CI - test & coverage | ||
on: | ||
pull_request: | ||
branches: | ||
|
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,7 +1,7 @@ | ||
name = "ConceptualClimateModels" | ||
uuid = "3e640dcb-3446-4ed7-aadb-0366b77312ec" | ||
authors = ["Datseris <[email protected]>"] | ||
version = "0.1.3" | ||
version = "0.2.0" | ||
|
||
[deps] | ||
DynamicalSystemsBase = "6e36e845-645a-534a-86f2-f5d4aa5a06b4" | ||
|
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,6 +1,7 @@ | ||
cd(@__DIR__) | ||
|
||
using ConceptualClimateModels | ||
using ConceptualClimateModels.GlobalMeanEBM | ||
|
||
import Downloads | ||
Downloads.download( | ||
|
@@ -12,7 +13,9 @@ include("build_docs_with_style.jl") | |
pages = [ | ||
"Introduction" => "index.md", | ||
"Tutorial" => "tutorial.md", | ||
"Predefined processes" => "processes.md", | ||
"Submodules" => [ | ||
"Global mean EBM" => "submodules/globalmeanebm.md", | ||
], | ||
"Examples" => "examples.md", | ||
"References" => "references.md", | ||
] | ||
|
@@ -24,7 +27,7 @@ bib = CitationBibliography( | |
style=:authoryear | ||
) | ||
|
||
build_docs_with_style(pages, ConceptualClimateModels, ProcessBasedModelling; | ||
build_docs_with_style(pages, ConceptualClimateModels, GlobalMeanEBM, ProcessBasedModelling; | ||
authors = "George Datseris <[email protected]>", | ||
bib, warnonly = [:doctest, :missing_docs, :cross_references], | ||
repo = Remotes.GitHub("JuliaDynamics", "ConceptualClimateModels.jl") | ||
|
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
Oops, something went wrong.