Skip to content

Commit

Permalink
trivial formatting update for ingest progress
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Jul 15, 2022
1 parent 8d8c94d commit 5da109d
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions apis/python/src/tiledbsc/assay_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,13 @@ def ingest_data_rows_chunked(
chunk_seconds = t2 - t1
eta = eta_tracker.ingest_and_predict(chunk_percent, chunk_seconds)

log_io(
"... %s %7.3f%% done, ETA %s"
% (os.path.basename(self.uri), chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)
if chunk_percent < 100:
log_io(
"... %s %7.3f%% done, ETA %s"
% (self.nested_name, chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)

i = i2

Expand Down Expand Up @@ -487,12 +488,13 @@ def ingest_data_cols_chunked(
chunk_seconds = t2 - t1
eta = eta_tracker.ingest_and_predict(chunk_percent, chunk_seconds)

log_io(
"... %s %7.3f%% done, ETA %s"
% (os.path.basename(self.uri), chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)
if chunk_percent < 100:
log_io(
"... %s %7.3f%% done, ETA %s"
% (self.nested_name, chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)

j = j2

Expand Down Expand Up @@ -594,12 +596,13 @@ def ingest_data_dense_rows_chunked(
chunk_seconds = t2 - t1
eta = eta_tracker.ingest_and_predict(chunk_percent, chunk_seconds)

log_io(
"... %s %7.3f%% done, ETA %s"
% (os.path.basename(self.uri), chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)
if chunk_percent < 100:
log_io(
"... %s %7.3f%% done, ETA %s"
% (self.nested_name, chunk_percent, eta),
"%sFINISH chunk in %.3f seconds, %7.3f%% done, ETA %s"
% (self._indent, chunk_seconds, chunk_percent, eta),
)

i = i2

Expand Down

0 comments on commit 5da109d

Please sign in to comment.