Skip to content

Commit

Permalink
Merge pull request #390 from biolink/remove-neo4j-print-statements
Browse files Browse the repository at this point in the history
Removes some noisy print statements from neo4j_sink
  • Loading branch information
sierra-moxon authored May 5, 2022
2 parents 9c5881f + 1b854a6 commit 6e24040
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kgx/sink/neo_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def write_node(self, record) -> None:
sanitized_category = self.sanitize_category(record["category"])
category = self.CATEGORY_DELIMITER.join(sanitized_category)
if self.node_count >= self.CACHE_SIZE:
print(self.CACHE_SIZE)
self._flush_node_cache()
if category not in self.node_cache:
self.node_cache[category] = [record]
Expand Down Expand Up @@ -146,10 +145,8 @@ def _write_edge_cache(self) -> None:
for x in range(0, len(edges), batch_size):
y = min(x + batch_size, len(edges))
batch = edges[x:y]
print(batch)
log.debug(f"Batch {x} - {y}")
try:
print(query)
self.session.run(
query, parameters={"relationship": predicate, "edges": batch}
)
Expand Down

0 comments on commit 6e24040

Please sign in to comment.