Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added distribution copy.sqlite3
Binary file not shown.
Binary file added distribution.db
Binary file not shown.
1,288 changes: 1,288 additions & 0 deletions distribution_schema.sql

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions docs/cli/reduce.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@

## Network Reduction

You can use `reduce` command to perform network reduction is GDM system.
You can use the `reduce` command to perform network reduction on a GDM system.

```bash
Usage: gdm reduce [OPTIONS]
Usage: gdm [OPTIONS]

Reduce a GDM distribution system.

Options:
-g, --gdm-file TEXT GDM system JSON file path.
-t, --target-file TEXT Target GDM system JSON file path.
-g, --gdm-file TEXT GDM system JSON file path. [required]
-t, --target-file TEXT Target GDM system JSON file path. [required]
-f, --force Force delete the target GDM system file if
already exists.
-r, --reducer [three_phase] Delete target GDM file forcefully if exists.
-ts, --timeseries Delete target GDM file forcefully if exists.
-r, --reducer [three_phase] Reducer type to apply. [default: three_phase]
-ts, --timeseries Include timeseries data in the reduced system.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell.
--help Show this message and exit.

```

Following command converts test.json file to test_reduced.json file including timeseries data.
Following command converts `test.json` to `test_reduced.json` including timeseries data.

```bash
gdm redcue -g 'test.json' -t 'test_reduced.json' -r "three_phase" -ts
gdm reduce -g 'test.json' -t 'test_reduced.json' -r "three_phase" -ts
```
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"pydantic",
"infrasys~=1.0",
"importlib_metadata",
"click~=8.1.7",
"typer",
"pandas~=2.2.3",
"geopandas",
"plotly",
Expand All @@ -44,7 +44,7 @@ doc = [
]

[project.scripts]
gdm = "gdm.cli.cli:cli"
gdm = "gdm.cli.cli:app"
gdm-mcp-server = "gdm.mcp.server:main"

[project.urls]
Expand Down
Loading