sdynpy.core.sdynpy_array

Base class for all SDynPy object arrays.

SDynPy object arrays are subclasses of numpy’s ndarray. SDynPy uses structured arrays to store the underlying data objects, resulting in potentially complex data types while still achieving the efficiency and flexibility of numpy arrays.

This module defines the SdynpyArray, which is a subclass of numpy ndarray. The core SDynPy objects inherit from this class. The main contribution of this array is allowing users to access the underlying structured array fields using attribute notation rather than the index notation used by numpy (e.g. object.field rather than object[“field”]).

Copyright 2022 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Classes

SdynpyArray(shape[, dtype, buffer, offset, ...])

Superclass of the core SDynPy objects