Closed agtzdimi closed 4 years ago
Maybe the else case in line 509 can be avoided as the this.paramInit['payload']['electric.grid'][this.displayingNode][unitType]
will not be displayed anyway cause of the *ngIf.
Fix also the comment in line 534
removing else case ngx-p2g-unit and ngx-ves-unit remain displayed even if we select none. Also "else case" i think its usefull in order to remove units parameters, if user has selected a unit before and then selects none.
Yeap, in that case it's useful, let's keep it that way.
Let's merge this one
Issue merged to master, this can be closed
When 'None' is used the Scenario's format is changed
e.g if a P2G is used and then a user clicks 'None' the P2G attribute will be
P2G: []
which will resolve an error at the simulation.
For P2G none means 0 in nominal power
To replicate the issue:
animateInfo
inside case 3
in create-scenario.component.ts
a
console.log(this.paramInit)
node.1: P2G
attribute it should be "P2G": { "nominal.electric.power": 0, "efficiency.electrolysis": 75, "efficiency.methanation": 80, "efficiency.thermal": 23, },
The branch was merged to master Closing issue
We need to add a none option in VES / P2G units in the tech-param component in order to let the user revert a selected flexibility Unit