From 618f9dcda1803c05008cb227b20c3b2e9f66ba68 Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Thu, 15 Jun 2023 15:52:54 -0400 Subject: [PATCH] correct typo(?) --- tm2py/emme/manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tm2py/emme/manager.py b/tm2py/emme/manager.py index 89bf83d9..dabc65fa 100644 --- a/tm2py/emme/manager.py +++ b/tm2py/emme/manager.py @@ -112,9 +112,10 @@ def get_or_init(self, name: str, matrix_type: Literal["SCALAR", "FULL"] = "FULL" _matrix = self.emmebank.matrix(f'ms"{name}"') if _matrix is None: ident = self.emmebank.available_matrix_identifier(matrix_type) - _zero_matrix = self.emmebank.create_matrix(ident) - _zero_matrix.name = name - _zero_matrix.description = name + _matrix = self.emmebank.create_matrix(ident) + _matrix.name = name + _matrix.description = name + # _matrix.data = 0 return _matrix @property @@ -122,7 +123,6 @@ def zero_matrix(self): """Create ms"zero" matrix for zero-demand assignments.""" if self._zero_matrix is None: self._zero_matrix = self.get_or_init("zero", "SCALAR") - self._zero_matrix.data = 0 return self._zero_matrix