diff --git a/spatialprofilingtoolbox/db/feature_matrix_extractor.py b/spatialprofilingtoolbox/db/feature_matrix_extractor.py index f6bca4483..3f005221f 100644 --- a/spatialprofilingtoolbox/db/feature_matrix_extractor.py +++ b/spatialprofilingtoolbox/db/feature_matrix_extractor.py @@ -37,8 +37,7 @@ def __init__(self, 'cursor.' logger.warning(message) self.cursor = cast(Psycopg2Cursor, cursor) - if cursor is not None: - self.database_config_file = database_config_file + self.database_config_file = database_config_file def extract(self, specimen: str | None=None,