pg.scalars.scalar_spec
Accessible via pg.scalars.scalar_spec, pg.evolution.scalar_spec.
-
scalar_spec(value_spec)[source]
Returns the value spec for a schedule scalar.
- Return type:
pg.ValueSpec
- Parameters:
value_spec – a value spec for the schedule-based scalar type.
- Returns:
- A value spec for either the value itself or a callable that produces such
value based on a step (integer).