BooleanArrayValue#

class ansys.tools.variableinterop.array_values.BooleanArrayValue#

Bases: ansys.tools.variableinterop.variable_value.CommonArrayValue[numpy.bool_]

Stores a value as a BooleanArrayValue variable type.

In Python, a BooleanArrayValue type is implemented by extending NumPy’s ndarray type. This means that they decay naturally into numpy.ndarray objects when using NumPy’s array operators.

Overview#

clone

accept

to_real_array_value

Convert this value to a RealArrayValue type.

to_integer_array_value

Convert this value to an IntegerArrayValue type.

to_string_array_value

Convert this value to a StringArrayValue type.

to_api_string

to_display_string

from_api_string

Convert an API-formatted string to a BooleanArrayValue type.

Import detail#

from ansys.tools.variableinterop.array_values import BooleanArrayValue

Property detail#

property BooleanArrayValue.variable_type: ansys.tools.variableinterop.variable_type.VariableType#

Method detail#

BooleanArrayValue.__eq__(other) bool#
BooleanArrayValue.clone() BooleanArrayValue#
BooleanArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T#
BooleanArrayValue.to_real_array_value() RealArrayValue#

Convert this value to a RealArrayValue type.

Returns:
RealArrayValue

RealArrayValue type with the same values converted to real numbers.

BooleanArrayValue.to_integer_array_value() IntegerArrayValue#

Convert this value to an IntegerArrayValue type.

Returns:
IntegerArrayValue

IntegerArrayValue type with the same values converted to integers.

BooleanArrayValue.to_string_array_value() StringArrayValue#

Convert this value to a StringArrayValue type.

Returns:
StringArrayValue

StringArrayValue type with the same values converted to strings.

BooleanArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str#
static BooleanArrayValue.from_api_string(value: str) BooleanArrayValue#

Convert an API-formatted string to a BooleanArrayValue type.

Parameters:
valuestr

API string to parse.

Returns:
BooleanArrayValue

Result of parsing the BooleanArrayValue type.

BooleanArrayValue.to_display_string(locale_name: str) str#