diff --git a/NIST/core/__init__.py b/NIST/core/__init__.py index 38eaddc977bae2f15eeedf3472c5eb46b849d5e4..49548661cb15c85b05d4ab786a8f730dbeca2e6b 100644 --- a/NIST/core/__init__.py +++ b/NIST/core/__init__.py @@ -1013,7 +1013,13 @@ class NIST( object ): >>> n.get_ntype() [1, 2] """ - return sorted( self.data.keys() ) + lst = [] + + for ntype in sorted( self.data.keys() ): + if( len( self.data[ ntype ] ) ): + lst.append( ntype ) + + return lst def get_idc( self, ntype ): """