mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 12:58:12 +08:00
Do not cache index.html (#1603)
* Fix typo * Run black for code formatting * Do not cache index.html
This commit is contained in:
@@ -493,8 +493,7 @@ def evaluate_for_sparse_column_shift_encoding(xdata, sparse_threshold):
|
||||
nnz += shape[0] * (lim - col) - np.sum(m.count)
|
||||
if nnz > maxnnz:
|
||||
return (None, nnz, shape[0] * lim)
|
||||
log(2, "\t...cols", lim, "of", shape[1], "nnz",
|
||||
nnz, "nnz percent %5.2f%%" % (100 * nnz / (lim * shape[0])))
|
||||
log(2, "\t...cols", lim, "of", shape[1], "nnz", nnz, "nnz percent %5.2f%%" % (100 * nnz / (lim * shape[0])))
|
||||
|
||||
is_sparse = (100.0 * nnz / (shape[0] * shape[1])) < sparse_threshold
|
||||
return (col_shift if is_sparse else None, nnz, shape[0] * shape[1])
|
||||
|
||||
@@ -38,8 +38,7 @@ def main():
|
||||
print("input is not a directory", args.input)
|
||||
sys.exit(1)
|
||||
|
||||
shutil.copytree(args.input, args.output,
|
||||
ignore=shutil.ignore_patterns("X", "X_col_shift"))
|
||||
shutil.copytree(args.input, args.output, ignore=shutil.ignore_patterns("X", "X_col_shift"))
|
||||
|
||||
ctx = tiledb.Ctx(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user