fix_view_arrays#
- andes.system.helpers.fix_view_arrays(system, models=None)[source]#
Point NumPy arrays without OWNDATA (termed "view arrays" here) to the source array.
This function properly sets
vandearrays of internal variables as views of the corresponding DAE arrays.Inputs will be refreshed for each model.
- Parameters:
- systemandes.system.System
System object to be fixed
- modelsOrderedDict, optional
Subset of models to fix. Defaults to
system.models(all models).