Skip to content

Commit

Permalink
Add add-api
Browse files Browse the repository at this point in the history
Validate during initialization

Improve Node representation

Adapt type hint

Minimal version of `Model`

Add existing methods to `Model`

Continue

Fix remaining problems

Adapt codegen

Add launch config for playground

Generate schemas

Remove `Network` class

Stop avoiding database locking

Allow incrementally adding nodes

Move to add api only

Add `EdgeData`

Use explicit `Node` and `Point` class as input

Adapt the Edges class

Fix `Edge.add`

Share code between Basin and Basins

Avoid pydantic warnings

Add plotting functionality

Add more node types

Migrate tabulatedratingcurve

Update remaining nodes

Simplify Edge API

Port first part of examples

Add ribasim_version

Let tables be appended and continue on example

Migrate first example

Rename

Update examples

Move to new API

Add remaining nodes

Adapt yet another example

Rename `add` to `model` and port another example

Pre-commit
  • Loading branch information
Hofer-Julian committed Mar 1, 2024
1 parent 09928c5 commit e4b2a09
Show file tree
Hide file tree
Showing 29 changed files with 928 additions and 1,120 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,4 @@ report.xml

# Designated working dir for working on Ribasim models
models/
playground/output
9 changes: 8 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "0.2.0",
"configurations": [
{
{
"type": "julia",
"request": "launch",
"name": "Julia: current file",
Expand All @@ -17,6 +17,13 @@
"host": "localhost",
"port": 5678,
"justMyCode": false
},
{
"name": "Python Playground",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/playground/playground.py",
"console": "integratedTerminal"
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"[julia]": {
"editor.formatOnSave": true
},
"notebook.formatOnSave.enabled": true,
"notebook.formatOnSave.enabled": false,
"notebook.codeActionsOnSave": {
"source.fixAll.ruff": true,
"source.organizeImports.ruff": true
Expand Down
Loading

0 comments on commit e4b2a09

Please sign in to comment.