Skip to content

Commit

Permalink
Merge pull request #316 from nanli-emory/fix_counttissuepieces_params
Browse files Browse the repository at this point in the history
fix #315 - BasicModule.countTissuePieces does not define the `params` parameter
  • Loading branch information
jacksonjacobs1 authored Aug 28, 2024
2 parents 26a98cb + 808908a commit 13a9439
Show file tree
Hide file tree
Showing 5 changed files with 936 additions and 958 deletions.
4 changes: 2 additions & 2 deletions histoqc/BasicModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def finalProcessingArea(s, params):
f"After BasicModule.finalProcessingArea NO tissue remains detectable! Downstream modules likely to be incorrect/fail")


def countTissuePieces(s):
def countTissuePieces(s, params):
mask = s["img_mask_use"]
stats = getMaskRegionsStats(mask)
s.addToPrintList("#pieces_of_tissue", str(stats.get('num', 0)))
s.addToPrintList("#pieces_of_tissue", str(stats.get('num', 0)))
2 changes: 1 addition & 1 deletion histoqc/SaveModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def saveFinalMask(s, params):


def saveAssociatedImage(s, key:str, dim:int):
logging.info(f"{s['filename']} - \tsave{key.capitalize()}")
logging.info(f"{s['filename']}- save{key.capitalize()}")
osh = s["os_handle"]

if not key in osh.associated_images:
Expand Down
Loading

0 comments on commit 13a9439

Please sign in to comment.