Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into feature/add-color-maps-to-tiffwriter
Browse files Browse the repository at this point in the history
  • Loading branch information
AjeyPaiK committed Jan 4, 2024
2 parents 0320acd + 172384a commit 68bf17f
Show file tree
Hide file tree
Showing 7 changed files with 274 additions and 97 deletions.
4 changes: 3 additions & 1 deletion ahcore/callbacks/h5_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _batch_end(
if mpp is None:
mpp = slide_image.mpp

size = slide_image.get_scaled_size(slide_image.get_scaling(mpp))
_, size = slide_image.get_scaled_slide_bounds(slide_image.get_scaling(mpp))
num_samples = len(current_dataset)

# Let's get the data_description, so we can figure out the tile size and things like that
Expand All @@ -142,6 +142,8 @@ def _batch_end(
tile_size=tile_size,
tile_overlap=tile_overlap,
num_samples=num_samples,
color_profile=None,
is_compressed_image=False,
progress=None,
)
new_process = Process(target=new_writer.consume, args=(self.generator(new_queue), child_conn))
Expand Down
1 change: 1 addition & 0 deletions ahcore/cli/data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to write copy manifests files over to SCRATCH directory"""
from __future__ import annotations
import argparse
import hashlib
import os
Expand Down
Loading

0 comments on commit 68bf17f

Please sign in to comment.