diff --git a/Tests/test_reports.py b/Tests/test_reports.py index 979773da..c1cead1a 100644 --- a/Tests/test_reports.py +++ b/Tests/test_reports.py @@ -964,7 +964,7 @@ def test_multivariateqcreport_analytical(self): for testFile in testFiles: expectedPath = os.path.join(tmpdirname, 'graphics', 'report_multivariateAnalytical', testFile) - print(expectedPath) + #print(expectedPath) self.assertTrue(os.path.exists(expectedPath)) diff --git a/nPYc/plotting/_plotTIC.py b/nPYc/plotting/_plotTIC.py index 8d0ed895..d4b582e5 100644 --- a/nPYc/plotting/_plotTIC.py +++ b/nPYc/plotting/_plotTIC.py @@ -73,7 +73,8 @@ def plotTIC(dataset, addViolin=True, addBatchShading=False, msData.applyMasks() # List unique classes in msData.sampleMetadata[colourBy] - uniq = msData.sampleMetadata[colourBy].unique() + uniq_classes = msData.sampleMetadata[colourBy].unique() + uniq = [str(i) for i in uniq_classes] if colourType == 'categorical': @@ -150,7 +151,7 @@ def plotTIC(dataset, addViolin=True, addBatchShading=False, # Colour by categorical class if colourType == 'categorical': - uniq = msData.sampleMetadata[colourBy].unique() + #uniq = msData.sampleMetadata[colourBy].unique() defined above palette = {} sampleMasks = [] # sampleMasks = list() for u in uniq: