scripts.loki_transform
Loki head script for source-to-source transformations concerning ECMWF physics, including “Single Column” (SCA) and CLAW transformations.
Classes
A custom transformation pipeline that primarily does nothing, allowing us to test simple parse-unparse cycles. |
- class IdemTransformation
Bases:
Transformation
A custom transformation pipeline that primarily does nothing, allowing us to test simple parse-unparse cycles.
- transform_subroutine(routine, **kwargs)
Defines the transformation to apply to
Subroutine
items.For transformations that modify
Subroutine
objects, this method should be implemented. It gets called via the dispatch methodapply()
.- Parameters:
routine (
Subroutine
) – The subroutine to be transformed.**kwargs (optional) – Keyword arguments for the transformation.