choosehappy / HistoQC

HistoQC is an open-source quality control tool for digital pathology slides
BSD 3-Clause Clear License
253 stars 100 forks source link

Fix typo that breaks wsidicom when "handles" is not present in config file #263

Closed CGDogan closed 9 months ago

CGDogan commented 10 months ago

Change 1: Fix typo that broke wsidicom

Otherwise it says not found in the map in wsiimagehandle.py:

WSI_HANDLES = {
    "openslide" : "histoqc.wsihandles.OpenSlideHandle",
    "wsidicom" : "histoqc.wsihandles.DicomHandle"
}

Change 2:

Gracefully handle inexistant handles

It used to fail on the next line and break the loop and not try the remaining handles

nanli-emory commented 9 months ago

Hi @CGDogan, good catch. ;)