warnings ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | warnings |
| name | Warnings |
| pattern | \s+The number of warnings for this run is.* |
| endPattern | .* |
| endPattern2 | ~ |
| xml:base | environment/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+{I,cp2k:warnings}\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />