timetoshare.validation.representation#
Finite-number and own-axis representation rules.
- timetoshare.validation.representation.rewritten(value, number_type)[source]#
Return an exact rewriting in
number_type, orNone.
- timetoshare.validation.representation.representation_problems(manifest)[source]#
Yield own-axis representation violations in manifest order.
The timelines first (a flow-control element’s coordinate, then the
byof itsendsand of each destination and itsafter), then the coordinate of every named timestamp on a timeline of the manifest or a virtual timeline, then thestart,endand widthspanof every elision on one, then the gaps of every FlowMap of a timeline of the manifest, each read as that timeline’s number type, then thelengthof every virtual timeline, read as its own.
- timetoshare.validation.representation.plainly_finite(value)[source]#
Whether
valueis plain JSON data whose every float is finite.Plain JSON data is made of
dict,list,str,int,float,boolandNonealone. Where this answersTrue,finite_number_problems()yields nothing forvalueand for any copy of it that only rewrites its strings;Falsemeans only that the rule must run.