You are viewing the pre-release documentation of the upcoming ioChem-BD v5 release.ioChem-BD v5 pre-release docs.What's newWhat's newยทVisit the v4 legacy documentationv4 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" />