You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to HEPData/hepdata-converter#41, some records have an incorrect YAML encoding such as value: 800 - 1000 (table) or value: '1-1.5' (table) instead of separate low and high values. Such an incorrect YAML encoding gives an acceptable table rendering and is properly handled by the visualisation code, so it could easily be missed in the review process. We should therefore invalidate cases where an independent variable value (without low and high values) has the form of two numbers separated by a hyphen (with or without surrounding spaces). This might be possible using the not keyword in the JSON schema. Note that the numbers might be given in scientific notation. If value takes the form of two numbers separated by a hyphen, an error message should be returned asking the user to instead give the range as low and high values.
The text was updated successfully, but these errors were encountered:
Related to HEPData/hepdata-converter#41, some records have an incorrect YAML encoding such as
value: 800 - 1000
(table) orvalue: '1-1.5'
(table) instead of separatelow
andhigh
values. Such an incorrect YAML encoding gives an acceptable table rendering and is properly handled by the visualisation code, so it could easily be missed in the review process. We should therefore invalidate cases where an independent variablevalue
(withoutlow
andhigh
values) has the form of two numbers separated by a hyphen (with or without surrounding spaces). This might be possible using thenot
keyword in the JSON schema. Note that the numbers might be given in scientific notation. Ifvalue
takes the form of two numbers separated by a hyphen, an error message should be returned asking the user to instead give the range aslow
andhigh
values.The text was updated successfully, but these errors were encountered: