UDeep

Conformance files

Small figure files, each made to pass or to break one rule of the profile, with the verdict a validator must give. Another implementation shows that it stores, finds and checks a declaration as the reference does by giving the same verdicts. The data is synthetic: a ramp with one bright spot, 40 by 60 values, noise-free. Anatomy of a UDeep file takes the two valid files apart.

The same cases in machine-readable form: expected.json. With the reference implementation, a case is checked as

import numpy, udeep.validate
report = udeep.validate.validate("valid.jpg", data=numpy.load("data.npy"), sdr="valid_sdr.png")
print(report)     # or report.status("data link"), report.ok

or, for a file on its own, python -m udeep.validate FILE. Points that need the figure itself (the pixels, §10 points 3 to 5) are not part of these cases.

CaseFilesWhat it testsA validator must report
validvalid.jpg
data data.npy / .csv
SDR figure valid_sdr.png
a complete gain-map JPEG, with its data and its SDR figure of recordmetadata pass, mapping pass, precision pass, data link pass, sdr link pass; conforms
valid-other-datavalid.jpg
data other_data.npy / .csv
the same file against data one value apart (§10 point 7)metadata pass, data link fail; does not conform
valid-other-sdrvalid.jpg
SDR figure other_sdr.png
the same file against another SDR figure (§10 point 7)metadata pass, sdr link fail; does not conform
recordrecord.png
data data.npy / .csv
SDR figure valid_sdr.png
a 16-bit PQ PNG data record of the same figure, read back as datametadata pass, mapping pass, precision pass, data link pass, data read back pass, sdr link pass; conforms
missing-unitmissing_unit.jpga required property absent: DataUnit (8.1)metadata fail; does not conform
not-a-numbernot_a_number.jpga number that is not one: MaxDataStep is nan (8.5)metadata fail; does not conform
sha3-alonesha3_alone.jpga SHA3-256 digest without its SHA-256 partner (8.5)metadata fail; does not conform
headroomheadroom.jpgthe declared headroom is not the gain map's (9.1)metadata fail; does not conform
two-declarationstwo_declarations.jpgtwo declarations in one packet (8.8)metadata fail; does not conform
elsewhereelsewhere.jpgthe declaration outside the primary image's XMP segment (8.8)metadata fail; does not conform
compressedcompressed.pngthe PNG's XMP chunk compressed (8.8)metadata fail; does not conform
no-sdr-digestno_sdr_digest.pnga PNG with no SDR base that does not name its SDR figure (9.1.2)metadata fail; does not conform

doi:10.0000/udeep-conformance-example is an example identifier: there is no such record.