FileArrayValue
#
- class ansys.tools.variableinterop.file_array_value.FileArrayValue#
Bases:
ansys.tools.variableinterop.variable_value.CommonArrayValue
[ansys.tools.variableinterop.file_value.FileValue
]Stores a value for the
FileArrayValue
variable type.In Python, the
FileArrayValue
type is implemented by extending NumPy’sndarray
type. This means that they decay naturally intonumpy.ndarray
objects when using NumPy’s array operators.
Overview#
Invoke the visitor pattern of this object using the passed-in visitor |
|
Convert this value to an API string. |
|
Convert the value to a formatted string. |
Variable type of the object. |
Initialize a new |
Import detail#
from ansys.tools.variableinterop.file_array_value import FileArrayValue
Property detail#
- property FileArrayValue.variable_type: ansys.tools.variableinterop.variable_type.VariableType#
Variable type of the object.
- Returns:
VariableType
Variable type of the object.
Method detail#
- FileArrayValue.__eq__(other)#
- FileArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T #
Invoke the visitor pattern of this object using the passed-in visitor implementation.
- Parameters:
- visitor
IVariableValueVisitor
Visitor object to call.
- visitor
- Returns:
T
Results of the visitor invocation.
- FileArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str #
Convert this value to an API string.
- Parameters:
- context
ISaveContext
Context used for saving.
- context
- Returns:
str
String appropriate for use in files and APIs.
- static FileArrayValue.from_api_object(value: Any, context: ansys.tools.variableinterop.isave_context.ILoadContext, scope: ansys.tools.variableinterop.file_scope.FileScope) FileArrayValue #
Initialize a new
FileArrayValue
type from a list of API strings.- Parameters:
- value
Any
Value to use.
- context
ILoadContext
Load context to initialize the value with.
- scope
FileScope
Scope to initialize the value in.
- value
- Returns:
FileArrayValue
New
FileArrayValue
type initialized from the value.