-
Notifications
You must be signed in to change notification settings - Fork 14
Description
The Validator tool gives me errors about the missing_constant value here, for a number in CSV files to 3 decimal places.
e.g. I'd assume the xml code should be this:
<Field_Delimited>
<name>name here</name>
<field_number>38</field_number>
<data_type>ASCII_Real</data_type>
<field_format>%10.3f</field_format>
<unit>eV</unit>
<description>
Species 3 Temperature Uncertainty
</description>
<Special_Constants>
<missing_constant> -1.000</missing_constant>
<valid_maximum> 10000.000</valid_maximum>
<valid_minimum> 0.001</valid_minimum>
</Special_Constants>
</Field_Delimited>
The validator gives warnings every time the CSV has a -1.000 in that column.
Yet if I alter one line above to be:
<missing_constant> -1</missing_constant>
The validator is then happy, despite the CSV being unaltered with -1.000's in it.
I've had similar issues with column formats of %10.3f, %9.4f and %8.6f, all with missing_constant values of -1 (to however many decimal places).
But weirdly, one column had a format of %9.3f (with a missing constant of 99999.999) and this didn't complain. (perhaps because not negative?)
That seems unexpected, and I'd prefer to keep all values here to the same precision.
Is this a bug in the code?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status