Skip to content

Warnings on units #48

@ltbrizolara

Description

@ltbrizolara

Hi,

Should dliswriter emit a warning when a ChannelItems's unit does not belong to the list on Appendix F?

In our experience, we get warnings with that long list of units very often, making it look more serious than it really is...

'some_unit' is not one of the allowed units: A, K, cd, dAPI, dB, gAPI, kg, m, mol, nAPI, rad, s, sr, Btu, C, D, GPa, Gal, Hz, J, L, MHz, MPa, MeV, Mg, Mpsi, N, Oe, P, Pa, S, T, V, W, Wb, a, acre, atm, b, bar, bbl, c, cP, cal, cm, cu, d, daN, deg, degC, degF, dm, eV, fC, ft, g, gal, h, in, kHz, kPa, kV, keV, kgf, km, lbf, lbm, mA, mC, mD, mGal, mL, mS, mT, mV, mW, mg, min, mm, mohm, ms, nC, nW, ns, ohm, pC, pPa, ppdk, ppk, ppm, psi, pu, t, ton, uA, uC, uPa, uV, um, uohm, upsi, us

As far as I understand, those units are not enforced by the standard. Maybe wouldn't it be better to loose the definition of the ChannelItem's units attribute to a str? Or to emit a simpler discrete warning like "unit not enlisted in DLIS rp66v1 Appendix F"?

Thanks in advance!

Tiago

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions