Skip to content

Commit 5922168

Browse files
committed
Bugfix: needed to transpose matrix before JSON
1 parent b1d21b3 commit 5922168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

py/truncate_kde.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def parse_args():
5050
"--output",
5151
type=str,
5252
required=True,
53-
help="Path prefix for the output files: <>.X_idxs.npy, <>.Y_idxs.npy, <>.grid.npy, <>.sider.tsv",
53+
help="Path prefix for the output JSON model (e.g. sample.json).",
5454
)
5555
parser.add_argument(
5656
"-b",
@@ -300,7 +300,7 @@ def printModelJson(grid, x_labels, y_labels, end_ratios, args, sep=","):
300300
grid_mtx = SerialMTX(
301301
"KDE_mtx",
302302
list(grid.shape),
303-
list(grid.flatten()),
303+
list(grid.T.flatten()),
304304
[int(a) for a in list(x_labels[1:]) + list(y_labels[1:])],
305305
)
306306

0 commit comments

Comments
 (0)