From b95d3f27c028c6f9841b8e4612991c3c851b1881 Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Tue, 14 Mar 2023 13:16:24 -0500 Subject: [PATCH] [Python] Drop hidden SolutionArray properties --- interfaces/cython/cantera/composite.py | 41 -------------------------- 1 file changed, 41 deletions(-) diff --git a/interfaces/cython/cantera/composite.py b/interfaces/cython/cantera/composite.py index 856e328461..3faf72f8b5 100644 --- a/interfaces/cython/cantera/composite.py +++ b/interfaces/cython/cantera/composite.py @@ -706,47 +706,6 @@ def shape(self, shp): self._indices = list(np.ndindex(shp)) self._output_dummy = np.empty(shp) - @property - def _shape(self): - """The shape of the `SolutionArray`. - - Handle transition from member variable to property. - - .. deprecated:: 3.0 - - Property to be removed after Cantera 3.0; use `shape` instead. - """ - return self.shape - - @property - def _states(self): - """The `SolutionArray` state array. - - Handle transition to state held by SolutionArrayBase / C++ core - - .. deprecated:: 3.0 - - Property to be removed after Cantera 3.0. - """ - states = [] - for i in range(self.size): - states.append(self._get_state(i)) - states = np.vstack(states) - states = states.reshape(self.shape + states.shape[1:]) - return states - - @property - def _extra(self): - """Dictionary of extra components of the `SolutionArray`. - - Handle transition from member variable to list of names. - - .. deprecated:: 3.0 - - Property to be removed after Cantera 3.0; use `extra` instead. - """ - return {key: self.__getattr__(key) for key in self.extra} - def append(self, state=None, normalize=True, **kwargs): """ Append an element to the array with the specified state. Elements can