Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 6.92 KB

total.time-d3e38081.rst

File metadata and controls

70 lines (50 loc) · 6.92 KB

total.time

Implementation level
Type Status
CML extraction template image1
HTML5 representation image2
Template attributes
Attribute Value
source MOPAC log
id total.time
name Total job time
pattern \s*TOTAL\sJOB\sTIME:.*
endPattern .*
endPattern2 ~
xml:base job/time.xml

Input

TOTAL JOB TIME:         24928.18 SECONDS

Output text

<comment class="example.output" id="total.time">
        <module cmlx:templateRef="total.time">
            <scalar dataType="xsd:double" dictRef="cc:elapsedtime" units="si:s">24928.18</scalar>
        </module>
    </comment>

Template definition

<record>\s*TOTAL\sJOB\sTIME:\s*{F,cc:elapsedtime}SECONDS</record>
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cc:elapsedtime']" value="si:s" />
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list" />