funcs ¶
Type Aliases:
-
OneDimConvMode–Type alias for one dimension convolution mode
-
OnePassConvMode–Type alias for one pass convolution mode
-
SpatialConvMode–Type alias for spatial convolution mode only
-
TempConvMode–Type alias for temporal convolution mode only
-
TwoDimConvMode–Type alias for two dimensions convolution mode
-
TwoPassesConvMode–Type alias for two passes convolution mode
Classes:
-
Align–Defines alignment flags for positioning elements vertically and horizontally.
-
ConvMode–Convolution mode for .std.Convolution or std.AverageFrames
OneDimConvMode ¶
OneDimConvMode = Literal[HORIZONTAL, VERTICAL, HV]
Type alias for one dimension convolution mode
OnePassConvMode ¶
OnePassConvMode = Literal[SQUARE, HORIZONTAL, VERTICAL, TEMPORAL]
Type alias for one pass convolution mode
SpatialConvMode ¶
SpatialConvMode = Literal[SQUARE, HORIZONTAL, VERTICAL, HV]
Type alias for spatial convolution mode only
Align ¶
Bases: Flag
Defines alignment flags for positioning elements vertically and horizontally.
Attributes:
-
BOTTOM–Align to the bottom.
-
BOTTOM_CENTER–Align to the bottom-center.
-
BOTTOM_LEFT–Align to the bottom-left corner.
-
BOTTOM_RIGHT–Align to the bottom-right corner.
-
CENTER–Align to the horizontal center.
-
LEFT–Align to the left.
-
MIDDLE–Align to the vertical center.
-
MIDDLE_CENTER–Align to the center (both vertically and horizontally).
-
MIDDLE_LEFT–Align to the middle-left.
-
MIDDLE_RIGHT–Align to the middle-right.
-
RIGHT–Align to the right.
-
TOP–Align to the top.
-
TOP_CENTER–Align to the top-center.
-
TOP_LEFT–Align to the top-left corner.
-
TOP_RIGHT–Align to the top-right corner.
BOTTOM_CENTER class-attribute instance-attribute ¶
Align to the bottom-center.
BOTTOM_LEFT class-attribute instance-attribute ¶
Align to the bottom-left corner.
BOTTOM_RIGHT class-attribute instance-attribute ¶
Align to the bottom-right corner.
MIDDLE_CENTER class-attribute instance-attribute ¶
Align to the center (both vertically and horizontally).
MIDDLE_LEFT class-attribute instance-attribute ¶
Align to the middle-left.
MIDDLE_RIGHT class-attribute instance-attribute ¶
Align to the middle-right.
ConvMode ¶
Bases: CustomStrEnum
Convolution mode for .std.Convolution or std.AverageFrames
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
H–Alias for
ConvMode.HORIZONTAL -
HORIZONTAL–Horizontal-only convolution.
-
HV–Horizontal and Vertical convolution
-
S–Alias for
ConvMode.SQUARE -
SQUARE–Square horizontal/vertical convolution.
-
T–Alias for
ConvMode.TEMPORAL -
TEMPORAL–Temporal convolution
-
V–Alias for
ConvMode.VERTICAL -
VERTICAL–Vertical-only convolution.
-
is_one_dim(bool) – -
is_spatial(bool) – -
is_temporal(bool) – -
is_two_dim(bool) –
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |