reportDescriptionEmix.xml 1.4 KB

12345678910111213141516
  1. {% if report_description.measurement is defined and report_description.measurement is not none %}
  2. <{{ report_description.measurement.ns }}:{{ report_description.measurement.name }} xmlns:scale="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" >
  3. <{{ report_description.measurement.ns }}:itemDescription>{{ report_description.measurement.description }}</{{ report_description.measurement.ns }}:itemDescription>
  4. <{{ report_description.measurement.ns }}:itemUnits>{{ report_description.measurement.unit }}</{{ report_description.measurement.ns }}:itemUnits>
  5. {% if report_description.measurement.pulse_factor %}<oadr:pulseFactor>{{ report_description.measurement.pulse_factor }}</oadr:pulseFactor>{% else %}
  6. <scale:siScaleCode>{{ report_description.measurement.scale }}</scale:siScaleCode>
  7. {% endif %}
  8. {% if report_description.measurement.power_attributes %}
  9. <power:powerAttributes>
  10. <power:hertz>{{ report_description.measurement.power_attributes.hertz }}</power:hertz>
  11. <power:voltage>{{ report_description.measurement.power_attributes.voltage }}</power:voltage>
  12. <power:ac>{{ report_description.measurement.power_attributes.ac|booleanformat }}</power:ac>
  13. </power:powerAttributes>
  14. {% endif %}
  15. </{{ report_description.measurement.ns }}:{{ report_description.measurement.name }}>
  16. {% endif %}