-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from Deltares/docs/354-extend-general-overvie…
…w-documentation Docs/354 extend general overview documentation
- Loading branch information
Showing
18 changed files
with
64 additions
and
1,327 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Directories created during build of SPHINX | ||
build/** | ||
docs/** |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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
6 changes: 0 additions & 6 deletions
6
...chnical_documentation/_generated/ra2ce.ra2ce_handler.Ra2ceHandler.configure.rst
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...ical_documentation/_generated/ra2ce.ra2ce_handler.Ra2ceHandler.run_analysis.rst
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. _analysis_package: | ||
|
||
============ | ||
Analysis | ||
============ | ||
|
||
.. include:: ../../ra2ce/analysis/README.md | ||
:parser: myst_parser.sphinx_ |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# RA2CE | ||
|
||
## Ra2ce semantics | ||
|
||
- `ra2ce` is a [package](https://packaging.python.org/en/latest/tutorials/packaging-projects/), | ||
- everything else with an `__init__.py` is a subpackage (often written as (sub-)package). | ||
- single `.py` files are [modules](https://docs.python.org/3/tutorial/modules.html), | ||
- from a business perspective an `analysis` might be a module, but technically it can be implemented either as a (subpackage) or a module. | ||
|
||
## Structure description | ||
|
||
This package is divided into different (sub-)packages, the most relevants being the following: | ||
|
||
- `network`, this (sub-)package contains the logic to retrieve a normalized data structure capable of representing all the required properties of a network for its later analysis. | ||
- `analysis`, this (sub-)package is responsible to execute an analysis (`direct` or `indirect`) for the given network. | ||
- `runners`, this (sub-)package encapsulates the logic to automatize an analysis of a ra2ce model. | ||
|
||
Other (sub-)packages carry a more 'supporting' role, such as: | ||
|
||
- `common`, a (sub-)package mostly contaning generic definitions as protocols (`typing.Protocol`) to be used across the whole project. | ||
- `configuration`, a subpackage responsible to parse the ra2ce `.ini` configuration files (for network and analysis) into their corresponding dataclasses. It is worth mentioning this subpackage is explicitely outside `common` to avoid circular dependencies with the `analysis` and `network` subpackages. | ||
|
||
## General class overview | ||
|
||
A general overview of the package relationships can be seen in the following diagram. | ||
|
||
| ![ra2ce_package_overview.drawio.png](/docs/_diagrams/ra2ce_package_overview.drawio.png)| | ||
|:--:| | ||
| *Ra2ce package overview* | |
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,19 +1,16 @@ | ||
# Network | ||
|
||
In this package you will find all logic required to load network data from diverse sources (file or web based). | ||
In this (sub-)package you will find all logic required to load network data from diverse sources (file or web based). | ||
|
||
The configuration to be used to load a network is usually an `.ini` file. This file is later represented as a `NetworkConfigData` object that can as well be directly initialized via code (`network_config_data` (sub)package). | ||
The configuration to be used to load a network is usually an `.ini` file. This file is later represented as a `NetworkConfigData` object that can as well be directly initialized via code (`network_config_data` (sub-)package). | ||
|
||
The different sources to generate a network are handled through our own network wrappers (`NetworkWrapperProtocol`) in the `network_wrappers` (sub)package. | ||
The different sources to generate a network are handled through our own network wrappers (`NetworkWrapperProtocol`) in the `network_wrappers` (sub-)package. | ||
|
||
|
||
## General class overview | ||
|
||
The following diagram describes the relations between the most relevant entities of the `ra2ce.network` (sub-)package. | ||
|
||
| ![ra2ce_network.jpg](../../docs/_diagrams/ra2ce_network.png)| | ||
| ![ra2ce_network_class_diagram.drawio.png](/docs/_diagrams/ra2ce_network_class_diagram.drawio.png)| | ||
|:--:| | ||
| *Ra2ce network overview* | | ||
|
||
Add class diagram | ||
Add flowchart diagram of loading a diagram | ||
| *Ra2ce network overview* | |