Skip to content

Commit 536a0a9

Browse files
committed
Fix duplicate class
We defined a namedtuple called "PriorParams" then immediately replaced it. This change makes the definitions more logical
1 parent b041a90 commit 536a0a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tsdate/prior.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@
3939
from . import util
4040

4141

42-
PriorParams_base = namedtuple("PriorParams", "alpha, beta, mean, var")
43-
44-
45-
class PriorParams(PriorParams_base):
42+
class PriorParams(namedtuple("PriorParamsBase", "alpha, beta, mean, var")):
4643
@classmethod
4744
def field_index(cls, fieldname):
4845
return np.where([f == fieldname for f in cls._fields])[0][0]

0 commit comments

Comments
 (0)