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

Validates that type-hinted attributes exist in the controller, and are accessible via the dot accessor, from the attributes dictionary and with the right datatype.

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]#

Validates that type-hinted attributes exist in the controller, and are accessible via the dot accessor, from the attributes dictionary and with the right datatype.