Skip to content

Commit bda4fa0

Browse files
committed
Only silence warnings in structureArray if a custom classifier is specified. #11
1 parent f1e89f3 commit bda4fa0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

freesasa.pyx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,10 +804,14 @@ def structureArray(fileName,
804804
cdef int n
805805

806806
verbosity = getVerbosity()
807-
setVerbosity(silent)
807+
808+
if classifier is not None:
809+
setVerbosity(silent)
808810
cdef freesasa_structure** sArray = freesasa_structure_array(input,&n,NULL,structure_options)
809811
fclose(input)
810-
setVerbosity(verbosity)
812+
813+
if classifier is not None:
814+
setVerbosity(verbosity)
811815

812816
if sArray is NULL:
813817
raise Exception("Problems reading structures in '%s'." % fileName)

0 commit comments

Comments
 (0)