Skip to content

Commit

Permalink
Fix relative errors in yamlobs file (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterjdb authored Oct 30, 2020
1 parent 5bc477b commit 1b5f25e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/flownet/templates/observations.yamlobs.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ smry:
{%- elif not loop.first: %}
- date: {{ kw.date.strftime('%Y-%m-%d') }}
value: {{ kw.gas_rate }}
error: {{ [error_config.WGPR.rel_error * kw.oil_rate, error_config.WGPR.min_error] | max }}
error: {{ [error_config.WGPR.rel_error * kw.gas_rate, error_config.WGPR.min_error] | max }}
{%- endif -%}
{%- endfor %}
{%- endif -%}
Expand All @@ -32,7 +32,7 @@ smry:
{%- elif not loop.first: %}
- date: {{ kw.date.strftime('%Y-%m-%d') }}
value: {{ kw.water_rate }}
error: {{ [error_config.WWPR.rel_error * kw.oil_rate, error_config.WWPR.min_error] | max }}
error: {{ [error_config.WWPR.rel_error * kw.water_rate, error_config.WWPR.min_error] | max }}
{%- endif -%}
{%- endfor %}
{%- endif -%}
Expand All @@ -44,7 +44,7 @@ smry:
{%- elif not loop.first: %}
- date: {{ kw.date.strftime('%Y-%m-%d') }}
value: {{ kw.bhp }}
error: {{ [error_config.WBHP.rel_error * kw.oil_rate, error_config.WBHP.min_error] | max }}
error: {{ [error_config.WBHP.rel_error * kw.bhp, error_config.WBHP.min_error] | max }}
{%- endif -%}
{%- endfor %}
{%- endif -%}
Expand All @@ -56,7 +56,7 @@ smry:
{%- elif not loop.first: %}
- date: {{ kw.date.strftime('%Y-%m-%d') }}
value: {{ kw.thp }}
error: {{ [error_config.WTHP.rel_error * kw.oil_rate, error_config.WTHP.min_error] | max }}
error: {{ [error_config.WTHP.rel_error * kw.thp, error_config.WTHP.min_error] | max }}
{%- endif -%}
{%- endfor %}
{%- endif -%}
Expand Down

0 comments on commit 1b5f25e

Please sign in to comment.