Skip to content

Commit

Permalink
assign value instead of testing for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
bulricht authored Oct 23, 2024
1 parent fdc40a4 commit 617f94e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/sediment_sampling.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Sets:
] ;
{%- endif %}
{%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #}
{% set x,y == _.depth.split('-') %}
{% set x,y = _.depth.split('-') %}
emobon-sampling:minSamplingDepth [
a qudt:QuantityValue ;
qudt:numericValue {{ x | xsd("integer") | safe }} ;
Expand Down Expand Up @@ -223,7 +223,7 @@ Sets:
] ;
{%- endif %}
{%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #}
{% set x,y == _.depth.split('-') %}
{% set x,y = _.depth.split('-') %}
emobon-sampling:minSampleDepth [
a qudt:QuantityValue ;
qudt:numericValue {{ x | xsd("integer") | safe }} ;
Expand Down
4 changes: 2 additions & 2 deletions templates/water_sampling.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Sets:
] ;
{%- endif %}
{%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #}
{% set x,y == _.depth.split('-') %}
{% set x,y = _.depth.split('-') %}
emobon-sampling:minSamplingDepth [
a qudt:QuantityValue ;
qudt:numericValue {{ x | xsd("integer") | safe }} ;
Expand Down Expand Up @@ -221,7 +221,7 @@ Sets:
] ;
{%- endif %}
{%- if '-' in _.depth %} {# case 3: (range/single value) x-y/x-x (assuming smallest always first) #}
{% set x,y == _.depth.split('-') %}
{% set x,y = _.depth.split('-') %}
emobon-sampling:minSampleDepth [
a qudt:QuantityValue ;
qudt:numericValue {{ x | xsd("integer") | safe }} ;
Expand Down

0 comments on commit 617f94e

Please sign in to comment.