mw_Junction

tables.auto_generated.mw_Junction

Classes

Name Description
mw_JunctionTable Table for mw_Junction (Junctions).
mw_JunctionTableColumns Column names for mw_Junction (Junctions).

mw_JunctionTable

tables.auto_generated.mw_Junction.mw_JunctionTable(net_table)

Table for mw_Junction (Junctions).

Attributes

Name Description
columns Get the columns for the table.
description Get the table description.
display_name Get the display name for the table.
name Get the table name.

Methods

Name Description
delete Create a DELETE query for this table.
get_downstream_links Get links MUIDs where specified node MUID is the downstream node.
get_muids Get a list of MUIDs for the table.
get_number_of_links Get the number of links connected to a node.
get_number_of_links_enabled Get the number of enabled links connected to a node.
get_upstream_links Get link MUIDs where specified node MUID is the upstream node.
insert Insert a row with the given values.
select Create a SELECT query for this table.
update Create an UPDATE query for this table.
delete
tables.auto_generated.mw_Junction.mw_JunctionTable.delete()

Create a DELETE query for this table.

Returns
Name Type Description
DeleteQuery A new DeleteQuery object
get_muids
tables.auto_generated.mw_Junction.mw_JunctionTable.get_muids(
    order_by=None,
    descending=False,
)

Get a list of MUIDs for the table.

Parameters
Name Type Description Default
order_by str or None Column to order the MUIDs by None
descending bool Whether to order in descending order False
Returns
Name Type Description
list of str A list of MUIDs
insert
tables.auto_generated.mw_Junction.mw_JunctionTable.insert(values, execute=True)

Insert a row with the given values.

Parameters
Name Type Description Default
values dict of str to Any Column-value pairs to insert required
execute bool Whether to execute the query immediately (default: True) True
Returns
Name Type Description
str or InsertQuery If execute is True, returns the ID of the newly inserted row (MUID) If execute is False, returns an InsertQuery instance
select
tables.auto_generated.mw_Junction.mw_JunctionTable.select(columns=[])

Create a SELECT query for this table.

Parameters
Name Type Description Default
columns list of str The columns to select []
Returns
Name Type Description
SelectQuery A new SelectQuery object
update
tables.auto_generated.mw_Junction.mw_JunctionTable.update(values)

Create an UPDATE query for this table.

Parameters
Name Type Description Default
values dict of str to Any Column-value pairs to set in the UPDATE required
Returns
Name Type Description
UpdateQuery A new UpdateQuery object

mw_JunctionTableColumns

tables.auto_generated.mw_Junction.mw_JunctionTableColumns(table)

Column names for mw_Junction (Junctions).

Attributes

Name Description
AV_Diameter Valve diameter [mm]
AV_Kapa Polytropic expansion
AV_ValveCurveID Dual-acting valve curve
AssetName Asset ID
DataSource Data source
DemCoeff Demand coefficient
Description Description
Element_S Status
Elev Elevation [m]
Em_FlowCoeff Flow coefficient [l/s/m^(1/2)]
Enabled Is active
EstHeight Estate height [m]
FFFLOREQ FFFLOREQ
FFPREREQ FFPREREQ
GeomX X [m]
GeomY Y [m]
Init_Quality_Concentration Chemical concentration [mg/l]
Init_Quality_Hour Water age [h]
Init_Quality_Percentage Source percentage [%]
MUID ID
MinPre Minimum pressure [m]
Note Note
TypeNo Node type
Z Surface elevation [m]
ZoneID Zone ID
gF gF
smF smF