fastcs.util#

Members

numpy_to_fastcs_datatype

Converts numpy types to fastcs types for widget creation.

snake_to_pascal

Converts string from snake case to Pascal case.

validate_hinted_attributes

Validate Attribute type-hints match dynamically intropected instances

fastcs.util.snake_to_pascal(name: str) str[source]#

Converts string from snake case to Pascal case. If string is not a valid snake case it will be returned unchanged

fastcs.util.numpy_to_fastcs_datatype(np_type) DataType[source]#

Converts numpy types to fastcs types for widget creation. Only types important for widget creation are explicitly converted

fastcs.util.validate_hinted_attributes(controller: BaseController)[source]#

Validate Attribute type-hints match dynamically intropected instances

For each type-hinted attribute, validate that a corresponding instance exists in the controller with the correct access mode and datatype.