@@ -50,7 +50,7 @@ def ed(entries):
5050 raise ValueError ("entries ({0}) cannot be negative" .format (entries ))
5151 out = Count ()
5252 out .entries = float (entries )
53- return out . specialize ()
53+ return out
5454
5555 @staticmethod
5656 def ing (transform = identity ):
@@ -69,7 +69,6 @@ def __init__(self, transform=identity):
6969 self .entries = 0.0
7070 self .transform = serializable (transform )
7171 super (Count , self ).__init__ ()
72- self .specialize ()
7372
7473 @inheritdoc (Container )
7574 def zero (self ):
@@ -80,7 +79,7 @@ def __add__(self, other):
8079 if isinstance (other , Count ):
8180 out = Count (self .transform )
8281 out .entries = self .entries + other .entries
83- return out . specialize ()
82+ return out
8483 else :
8584 raise ContainerException ("cannot add {0} and {1}" .format (self .name , other .name ))
8685
@@ -106,7 +105,7 @@ def __mul__(self, factor):
106105 else :
107106 out = self .zero ()
108107 out .entries = factor * self .entries
109- return out . specialize ()
108+ return out
110109
111110 @inheritdoc (Container )
112111 def __rmul__ (self , factor ):
@@ -208,7 +207,7 @@ def _cudaUnpackAndFill(self, data, bigendian, alignment):
208207 def _cudaStorageType (self ):
209208 return "float"
210209
211- def _numpy (self , data , weights , shape ):
210+ def _numpy (self , _ , weights , shape ):
212211 import numpy
213212 if isinstance (weights , numpy .ndarray ):
214213 assert len (weights .shape ) == 1
0 commit comments