Skip to content

Commit

Permalink
fixes export of omx matrices (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: pveigadecamargo <[email protected]>
  • Loading branch information
pedrocamargo and pveigadecamargo authored Dec 13, 2023
1 parent 8675f64 commit 8a842d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aequilibrae/matrix/aequilibrae_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def export(self, output_name: str, cores: List[str] = None):

def f(name):
if self.__omx:
coo = np.array(self.omx_file[name])
coo = coo_matrix(np.array(self.omx_file[name]))
else:
coo = coo_matrix(self.matrix[name])
data = {"row": self.index[coo.row], "column": self.index[coo.col], name: coo.data}
Expand Down

0 comments on commit 8a842d7

Please sign in to comment.