Skip to content

Commit

Permalink
logging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Dec 20, 2020
1 parent 60474d7 commit 56bf760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flyemflows/workflow/mitodistances.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def _fetch_synapses(body):
skip_flags = [os.path.exists(f'{output_dir}/{body}.csv') for body in bodies]
bodies_df = pd.DataFrame({'body': bodies, 'should_skip': skip_flags})
bodies = bodies_df.query('not should_skip')['body'].values
logger.info(f"Processing {len(bodies)}, skipping {bodies_df['should_skip'].sum()}")

dilation = options["dilation-radius"]
os.makedirs('body-logs')
Expand All @@ -167,6 +166,7 @@ def process_and_save(body):
psize = max(1, psize)

with neuprint_mgr_server_context:
logger.info(f"Processing {len(bodies)}, skipping {bodies_df['should_skip'].sum()}")
db.from_sequence(bodies, partition_size=psize).map(process_and_save).compute()

def init_services(self):
Expand Down

0 comments on commit 56bf760

Please sign in to comment.