Skip to content

Commit

Permalink
Improve process_dataset output (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
skearnes authored Feb 11, 2021
1 parent 344f4d7 commit 831b047
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ord_schema/scripts/process_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from absl import flags
from absl import logging
import github
from rdkit import RDLogger

from ord_schema import data_storage
from ord_schema import message_helpers
Expand Down Expand Up @@ -261,6 +262,8 @@ def run() -> Tuple[Set[str], Set[str], Set[str]]:
continue # Nothing to do for deleted files.
dataset = message_helpers.load_message(file_status.filename,
dataset_pb2.Dataset)
logging.info('%s: %d reactions', file_status.filename,
len(dataset.reactions))
datasets = {file_status.filename: dataset}
if FLAGS.validate:
# Note: this does not check if IDs are malformed.
Expand Down Expand Up @@ -301,6 +304,7 @@ def run() -> Tuple[Set[str], Set[str], Set[str]]:

def main(argv):
del argv # Only used by app.run().
RDLogger.DisableLog('rdApp.*') # Disable RDKit logging.
run()


Expand Down

0 comments on commit 831b047

Please sign in to comment.