genome_spy.ValueDefWithConditionStringNullTypeForShape¶
- class genome_spy.ValueDefWithConditionStringNullTypeForShape(condition=Undefined, description=Undefined, title=Undefined, value=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
ValueDefWithCondition<(string|null),TypeForShape>.Methods
condition([value, band, datum, description, ...])Return a copy with
conditionupdated.copy(*[, deep])Return a copy with optional keyword updates.
description(value)Return a copy with
descriptionupdated.Return this class schema with referenced properties merged in.
title(value)Return a copy with
titleupdated.to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
validate(instance)Validate an instance against this wrapper's schema.
value([value, expr])Return a copy with a
ExprRefvalue.- condition(value=Undefined, /, *, band=Undefined, datum=Undefined, description=Undefined, domainInert=Undefined, empty=Undefined, expr=Undefined, field=Undefined, format=Undefined, legend=Undefined, param=Undefined, project=Undefined, resolutionChannel=Undefined, scale=Undefined, test=Undefined, title=Undefined, type=Undefined)View on GitHub¶
Return a copy with
conditionupdated.- Parameters:
band (float) – Schema-defined
bandproperty.datum (Scalar_T | ExprRef | dict[str, Any]) – Schema-defined
datumproperty.description (str) – Schema-defined
descriptionproperty.domainInert (bool) – Schema-defined
domainInertproperty.empty (bool) – Schema-defined
emptyproperty.expr (str) – Schema-defined
exprproperty.field (str) – Schema-defined
fieldproperty.format (str) – Schema-defined
formatproperty.legend (Legend | LegendKwds | None) – Schema-defined
legendproperty.param (str) – Schema-defined
paramproperty.resolutionChannel (ChannelWithScale_T) – Schema-defined
resolutionChannelproperty.scale (Scale | ScaleKwds | None) – Schema-defined
scaleproperty.test (SelectionPredicateOperand | dict[str, Any] | SelectionUnionTest | NamedSelectionPredicateRef) – Schema-defined
testproperty.title (str | None) – Schema-defined
titleproperty.type (TypeForShape_T | Type_T) – Schema-defined
typeproperty.
- description(value)View on GitHub¶
Return a copy with
descriptionupdated.
- title(value)View on GitHub¶
Return a copy with
titleupdated.
- value(value=Undefined, /, *, expr=Undefined)View on GitHub¶
Return a copy with a
ExprRefvalue.- Parameters:
expr (str) – The expression string.
- copy(*, deep=True, **kwds)View on GitHub¶
Return a copy with optional keyword updates.
- classmethod resolve_references()View on GitHub¶
Return this class schema with referenced properties merged in.
- to_dict(*, validate=True)View on GitHub¶
Serialize this schema wrapper to a JSON-compatible dictionary.
- to_json(*, validate=True)View on GitHub¶
Serialize this schema wrapper to formatted JSON.
- classmethod validate(instance)View on GitHub¶
Validate an instance against this wrapper’s schema.