Skip to content

Commit

Permalink
correct typo(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Jun 15, 2023
1 parent 0a84236 commit 618f9dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tm2py/emme/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ 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
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


Expand Down

0 comments on commit 618f9dc

Please sign in to comment.