Closed zsliu98 closed 2 years ago
I encountered this bug when I tried to pass *kwargs to `Sim.compute_fit(self, args, **kwargs):` (so that I could compute MSE)
def compute_fit(self, *args, **kwargs): self.fit = cva.Fit(self, *args, **kwargs) return self.fit
Then I took a look at cva.Fit(self, *args, **kwargs):
class Fit(Analyzer): def __init__(self, sim, weights=None, keys=None, custom=None, compute=True, verbose=False, die=True, **kwargs): super().__init__(**kwargs) # Initialize the Analyzer object # something else here
However, the Analyzer.__init__() doesn't accept any **kwargs.
Analyzer.__init__()
class Analyzer(sc.prettyobj): def __init__(self, label=None): # something else here
Well spotted, looks like a bug!
Fixed in the 3.1.0 release coming soon.
I encountered this bug when I tried to pass *kwargs to `Sim.compute_fit(self, args, **kwargs):` (so that I could compute MSE)
Then I took a look at cva.Fit(self, *args, **kwargs):
However, the
Analyzer.__init__()
doesn't accept any **kwargs.