StringArrayValue
#
- class ansys.tools.variableinterop.array_values.StringArrayValue#
Bases:
ansys.tools.variableinterop.variable_value.CommonArrayValue
[numpy.str_
]Stores a value as a
StringArrayValue
variable type.In Python, the
StringArrayValue
type is implemented by extending NumPy’sndarray
type. This means that they decay naturally intonumpy.ndarray
objects when using NumPy’s array operators.
Overview#
Convert the value to a |
|
Convert the value to a |
|
Convert the value to an |
|
Convert an API-formatted string to a |
Import detail#
from ansys.tools.variableinterop.array_values import StringArrayValue
Property detail#
- property StringArrayValue.variable_type: ansys.tools.variableinterop.variable_type.VariableType#
Method detail#
- StringArrayValue.__eq__(other)#
- StringArrayValue.clone() StringArrayValue #
- StringArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T #
- StringArrayValue.to_real_array_value() RealArrayValue #
Convert the value to a
RealArrayValue
type.- Returns:
RealArrayValue
RealArrayValue
type with the same values converted to real numbers.
- StringArrayValue.to_boolean_array_value() BooleanArrayValue #
Convert the value to a
BooleanArrayValue
type.- Returns:
BooleanArrayValue
BooleanArrayValue
type with the same values converted to Boolean values.
- StringArrayValue.to_integer_array_value() IntegerArrayValue #
Convert the value to an
IntegerArrayValue
type.- Returns:
IntegerArrayValue
IntegerArrayValue
type with the same values converted to integers.
- StringArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str #
- static StringArrayValue.from_api_string(value: str) StringArrayValue #
Convert an API-formatted string to a
StringArrayValue
type.- Parameters:
- value
str
API string to parse.
- value
- Returns:
StringArrayValue
Result of parsing the
StringArrayValue
type.