From e6bef34a3a82398e03befb489fa1cdff3d29ea6f Mon Sep 17 00:00:00 2001 From: Joost van Griethuysen Date: Thu, 31 Jan 2019 10:54:20 +0000 Subject: [PATCH] STYL: Fix flake8 error in commandlinebatch.py --- radiomics/scripts/commandlinebatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiomics/scripts/commandlinebatch.py b/radiomics/scripts/commandlinebatch.py index a1b0748e..ec15d285 100644 --- a/radiomics/scripts/commandlinebatch.py +++ b/radiomics/scripts/commandlinebatch.py @@ -105,10 +105,10 @@ def main(): headers = None for idx, entry in enumerate(flists, start=1): # Check if the required columns have a value, if not, skip them. - if entry['Image'] is '': + if entry['Image'] == '': logger.error('Missing value in column "Image", cannot process. Skipping patient (%d/%d)', idx, len(flists)) continue - if entry['Mask'] is '': + if entry['Mask'] == '': logger.error('Missing value in column "Mask", cannot process. Skipping patient (%d/%d)', idx, len(flists)) continue