# 3.6.006

## INDEX

* [#inventory](#inventory "mention")
  * [#new-variable-to-open-hydrometer-tab-on-connec-instead-of-basic-form-when-searching-an-hydrometer](#new-variable-to-open-hydrometer-tab-on-connec-instead-of-basic-form-when-searching-an-hydrometer "mention")
  * [#creation-of-example-data-for-inventory](#creation-of-example-data-for-inventory "mention")
* [#epa](#epa "mention")
  * [#manage-hydrology-scenarios-and-dwf-scenarios-ud](#manage-hydrology-scenarios-and-dwf-scenarios-ud "mention")
  * [#add-roughness-catalog-on-non-visual-objects-manager-ws](#add-roughness-catalog-on-non-visual-objects-manager-ws "mention")
  * [#huge-enhancement-of-performance-by-creating-rpt\_arc-and-rpt\_node-stats-table-with-materialized-resul](#huge-enhancement-of-performance-by-creating-rpt_arc-and-rpt_node-stats-table-with-materialized-resul "mention")
* [#master](#master "mention")
  * [#enhance-button-execute-netscenario-on-netscenario\_manager](#enhance-button-execute-netscenario-on-netscenario_manager "mention")
  * [#new-function-to-merge-psectors-gw\_fct\_psector\_merge](#new-function-to-merge-psectors-gw_fct_psector_merge "mention")
  * [#new-function-setreapirpsector-to-be-used-to-repair-psectors-when-they-have-wrong-topology](#new-function-setreapirpsector-to-be-used-to-repair-psectors-when-they-have-wrong-topology "mention")
  * [#enhance-import-rpt-results-in-order-to-load-it-when-they-are-generated-by-epanet-ui](#enhance-import-rpt-results-in-order-to-load-it-when-they-are-generated-by-epanet-ui "mention")

## INVENTORY

### <mark style="color:blue;">New variable to open Hydrometer tab on Connec instead of Basic Form when searching an hydrometer</mark>

A new parameter has been added to table **config\_param\_system** under the name of **basic\_search\_hydrometer\_show\_connec**. This variable is involved with tab Hydrometer inside the Search plus Button and it displays the hydrometer info through a Basic Info form or a Giswater Info form according to the parameter's value. When its value is FALSE, the hydrometer info will show up on a Basic Info form. Otherwise, if the parameter is set to TRUE, the hydrometer info will appear on a Giswater Info form by showing up the tab Hydrometer of its related connec.&#x20;

### <mark style="color:blue;">Creation of example data for inventory</mark>

A new option is available in the main dialog of the plugin when creating a new DB Project Schema. Now, it is possible to create an example data containing only those features related to inventory. Comparing to the Full Example, the Inventory Example does not provide hydraulic modelling data.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2FaUyRKny7D1bLC5rBhxuh%2Fimage.png?alt=media&#x26;token=d365dae7-75b6-4d3b-a92b-5a13d7ea5508" alt=""><figcaption></figcaption></figure>

## EPA

### <mark style="color:blue;">Manage Hydrology scenarios and DWF Scenarios (UD)</mark>

Hydrology and Dry Water Flow (DWF) Scenarios can now be manage by using the Dscenario Manager button.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2FHOJ9k3EX91A7Ly9BKef4%2Fimage.png?alt=media&#x26;token=b739a72b-a3c6-4ddd-847b-9505b2ffaf99" alt=""><figcaption></figcaption></figure>

Each of them has its own dialog and several buttons to manage its properties. It is possible to create empty scenarios or scenarios with values, as well as Duplicate them, Delete them or Update its properties. There is also a Toolbox button which opens the Toolbox Function of Manage Hydrology Values or Manage DWF Values in each case.

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2FYV4Y5HfH3JmxGcq8o1i3%2Fimage.png?alt=media&#x26;token=61211b87-8bcd-465d-9619-90c79d99fd6f" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">Add Roughness catalog on Non-Visual Objects Manager (WS)</mark>

The Roughness Catalog has been added as a new tab into the Non-Visual Objects Manager. Now, it is possible to manage the roughness of any material through the different buttons shown in the Non-Visual Objects Manager. This is a more integrated way of managing the roughness as a non-visual object.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2F4ASBbnBrmgYsqQ9Igqgv%2Fimage.png?alt=media&#x26;token=b30abbc9-0bbc-4c02-a9ba-d10baf45174c" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">Huge enhancement of performance by creating rpt\_arc and rpt\_node stats table with materialized results</mark>

A performance enhancement has been made on the whole process of creating and displaying the EPA Results. The enhancement consists of creating 2 new tables (rpt\_arc\_stats and rpt\_node\_stats) and show the information through the table views v\_arc and v\_node. The table view definitions have been modified in order to avoid extracting data via complex queries. Now, these table views show the data from the new mentioned tables, avoiding complex queries.&#x20;

## MASTER

### <mark style="color:blue;">Enhance button execute netscenario on Netscenario Manager</mark>

A new button has been added to the Netscenario Manager.  Once a netscenario is selected, the button can be used in order to execute a Mapzone Netscenario analysis.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2FIQtac8RRfHN8EAPRNaK7%2Fimage.png?alt=media&#x26;token=c94d0541-461e-4ff1-bdc9-d6b94b1d0319" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">New function to merge psectors (gw\_fct\_psector\_merge)</mark>

A new function has been developed in order to merge multiple psectors into a single one. This can be found as a new button in Psector Manager or as a new function in the Giswater Toolbox.

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2FyN9hLpO8wskbSuNydgEg%2Fimage.png?alt=media&#x26;token=421cc982-c8c1-46f5-b414-1886a5ce3158" alt=""><figcaption></figcaption></figure>

Having selected 2 or more psectors, the Merge button from above can be used to merge them. This button opens the function dialog where the parameters are already set if the operation has been done from the Psector Manager. It is mandatory that the selected psectors have the same status, priority, psector\_type and expl\_id so they can be merged.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2Fb9MotKTMHKG6td4k1QpQ%2Fimage.png?alt=media&#x26;token=898d0483-4c5a-406c-a785-a9166ddf6cad" alt=""><figcaption></figcaption></figure>

Once the process starts, a new psector will be created as a result of merging the selected psectors. Also, several log messages will appear in the Info Log tab indicating all the actions that have taken place during the merging process.

### <mark style="color:blue;">New function setreapirpsector to be used to repair psectors when they have wrong topology</mark>

This function fixes topological issues in psectors. It fixes the following issues:

* Fills the "link\_id" for obsolete connecs (those with state=0) where "link\_id" is null
* Finds and repairs operative and planned arcs without operative nodes in the psector
* Finds and repairs planned arcs without planned nodes in the psector

This function warns the user about topological errors that have been generated while using the Psector Manager. Once any of the mentioned issues occure, a warning message appears and gives the option to overview the topological issues.&#x20;

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2Fy8nkkePWEkRIK6spXybw%2Fimage.png?alt=media&#x26;token=77787de5-a3db-41fb-ae67-60e8e434bcb0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://78444640-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3OfYgdaTSD51CRsy2UO6%2Fuploads%2F3enfif1ypVQkjMD2NbLx%2Fimage.png?alt=media&#x26;token=e788dfc6-70ef-4e3e-85ce-2e4fa9683043" alt=""><figcaption></figcaption></figure>

When the dialog appears, the topological issues appear marked in red. By clicking on the Repair button, the function setrepairpsector runs and fixes the topological inconsistencies shown in the dialog.&#x20;

### <mark style="color:blue;">Enhance import rpt results in order to load it when they are generated by EPANET ui</mark>

Now it is possible to import an EPANET result file not only when the simulation has been run through command line but also when it has been run using the EPANET User Interface.&#x20;
