-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Group Tree / Flow Network] Refactor - Change use of "Group tree" to …
…"Flow network" (#813) Co-authored-by: jorgenherje <[email protected]>
- Loading branch information
1 parent
20542c9
commit 7e96080
Showing
27 changed files
with
1,550 additions
and
1,254 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
Empty file.
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
36 changes: 36 additions & 0 deletions
36
backend_py/primary/primary/routers/flow_network/schemas.py
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,36 @@ | ||
from enum import Enum, StrEnum | ||
|
||
from pydantic import BaseModel, ConfigDict | ||
from primary.services.flow_network_assembler.flow_network_types import DatedFlowNetwork, FlowNetworkMetadata | ||
|
||
|
||
class Frequency(str, Enum): | ||
DAILY = "DAILY" | ||
WEEKLY = "WEEKLY" | ||
MONTHLY = "MONTHLY" | ||
QUARTERLY = "QUARTERLY" | ||
YEARLY = "YEARLY" | ||
|
||
|
||
class StatOption(str, Enum): | ||
MEAN = "MEAN" | ||
P10 = "P10" | ||
P90 = "P90" | ||
P50 = "P50" | ||
MIN = "MIN" | ||
MAX = "MAX" | ||
|
||
|
||
# ! Copy of the flow network service NodeType enum | ||
class NodeType(StrEnum): | ||
PROD = "prod" | ||
INJ = "inj" | ||
OTHER = "other" | ||
|
||
|
||
class FlowNetworkData(BaseModel): | ||
model_config = ConfigDict(revalidate_instances="always") | ||
|
||
edgeMetadataList: list[FlowNetworkMetadata] | ||
nodeMetadataList: list[FlowNetworkMetadata] | ||
datedNetworks: list[DatedFlowNetwork] |
This file was deleted.
Oops, something went wrong.
Empty file.
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.