Closed jacksonjacobs1 closed 7 months ago
https://github.com/choosehappy/HistoQC/blob/d29c63c8de01490816bdeeb3ffbaa0920ce6c875/histoqc/DeconvolutionModule.py#L28
This line raises the following ValueError when stain_matrix is an array:
stain_matrix
Exception has occurred: ValueError The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Change this line:
stain_matrix = getattr(sys.modules[__name__], stain, "") if stain_matrix == "":
to check the truthy value instead:
stain_matrix = getattr(sys.modules[__name__], stain, None) if stain_matrix:
This issue was resolved in #272
https://github.com/choosehappy/HistoQC/blob/d29c63c8de01490816bdeeb3ffbaa0920ce6c875/histoqc/DeconvolutionModule.py#L28
This line raises the following ValueError when
stain_matrix
is an array:Change this line:
to check the truthy value instead: