migration#
- lsst.images.serialization.migration(schema_name, from_major)#
Register a function that advances a tree one data-model major.
- Parameters:
- Returns:
Decorator that registers and returns the function unchanged.
- Return type:
- Raises:
RuntimeError – If a migration is already registered for this schema and major.
Notes
The function receives the raw on-disk tree as a
dictand may mutate and return it. It must not setschema_version; the caller does that as it chains steps.