read_from_annofile.txt 520 B

12345678910111213141516
  1. .anno files can contain differently formatted tags. In particular, when
  2. reading data from them, Raptor must handle the following cases for a
  3. certain XML element containing a duration. That is, Raptor must handle the
  4. cases
  5. <metric name="duration">93</metric>
  6. and
  7. <metric name="duration">93.000000</metric>
  8. Since this may vary between the .anno files, a float conversion must be used
  9. first in all cases, before an int conversion. This fix implements the extra
  10. float conversion without which an exception occurs.