gavo.svcs.dalipars module

DALI-type input parameters.

These, in particular, make intervals out of floats; uploads are as in “PQL”.

All this is rife with crazy rules and conventions. I’d much rather we hadn’t gone for intervals, but… well, the standards process went the other way.

gavo.svcs.dalipars.adaptInputKey(inputKey)[source]

returns inputKey changed to generate SQL for DALI-standard parameters.

This is used by buildFrom on CondDescs when renderers have a parameterStyle of dali.

It will return intervals for INTERVAL_TYPES, make enumerated keys multiple, turn dates and timestamps into MJD intervals.

InputKeys that already have xtypes are returned unchanged.