Skip to content

Commit

Permalink
update EnKF.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Feb 10, 2025
1 parent 97abe63 commit 280839a
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# - 'nightly'
os:
- ubuntu-latest
- macOS-latest
# - macOS-latest
# - windows-latest
arch:
- x64
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ _A framework for data assimilation with ensemble Kalman filter_
[![codecov](https://codecov.io/gh/jl-pkgs/EnKF.jl/graph/badge.svg?token=NWKofEtVNz)](https://codecov.io/gh/jl-pkgs/EnKF.jl/tree/master)


## About the package
## TODO

- [ ] 添加一个同化土壤水SM的案例
244 changes: 146 additions & 98 deletions notebooks/Duffing oscillator with EnKF.ipynb

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions notebooks/test-func.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"42\n"
]
}
],
"source": [
"# # 定义结构体 Hello\n",
"struct Hello\n",
" x::Float64\n",
"end\n",
"\n",
"# 定义 Hello 类型的调用函数\n",
"function (::Hello)(x::T) where T\n",
" return x\n",
"end\n",
"\n",
"# 创建一个 Hello 类型的实例\n",
"h = Hello(3.14)\n",
"\n",
"# 调用 Hello 实例,传递一个参数\n",
"result = h(42) # 此时 'x' 为 42,返回值为 42\n",
"println(result) # 输出:42"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.11.3",
"language": "julia",
"name": "julia-1.11"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 280839a

Please sign in to comment.