mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 21:46:17 +00:00
DL7 import: ignore non-numeric pressure
If pressure field is empty, we do not want to have field separator as pressure value. This would flood the console with parsing error messages. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3f060c5c28
commit
caf14865b4
1 changed files with 10 additions and 8 deletions
|
@ -413,6 +413,7 @@
|
||||||
<xsl:with-param name="line" select="$line"/>
|
<xsl:with-param name="line" select="$line"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
<xsl:if test="$pressure >= 0">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$units = 0">
|
<xsl:when test="$units = 0">
|
||||||
<xsl:value-of select="$pressure"/>
|
<xsl:value-of select="$pressure"/>
|
||||||
|
@ -421,6 +422,7 @@
|
||||||
<xsl:value-of select="concat(format-number(($pressure div 14.5037738007), '#'), ' bar')"/>
|
<xsl:value-of select="concat(format-number(($pressure div 14.5037738007), '#'), ' bar')"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
</xsl:if>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</sample>
|
</sample>
|
||||||
|
|
Loading…
Add table
Reference in a new issue