You are viewing the documentation of a previous ioChem-BD version (v4, legacy).ioChem-BD v4 legacy docs.Visit the current documentationCurrent docs
Skip to content

warnings ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idwarnings
nameWarnings
pattern\s+The number of warnings for this run is.*
endPattern.*
endPattern2~
xml:baseenvironment/warnings.xml

Input

      The number of warnings for this run is : 0

Output text

xml
<comment class="example.output" id="warnings">
      <module cmlx:templateRef="warnings">
        <list cmlx:templateRef="warnings">
          <scalar dataType="xsd:integer" dictRef="cp2k:warnings">0</scalar>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="warnings">\s+The number of warnings for this run is\s*:\s+&#123;I,cp2k:warnings&#125;\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />