9
9
from .UniformPrior import UniformPrior
10
10
11
11
__author__ = "Do Kester"
12
- __year__ = 2024
12
+ __year__ = 2025
13
13
__license__ = "GPL3"
14
- __version__ = "3.2.1 "
14
+ __version__ = "3.2.4 "
15
15
__url__ = "https://www.bayesicfitting.nl"
16
16
__status__ = "Perpetual Beta"
17
17
33
33
# * Science System (HCSS), also under GPL3.
34
34
# *
35
35
# * 2011 - 2014 Do Kester, SRON (Java code)
36
- # * 2016 - 202024 Do Kester
36
+ # * 2016 - 202025 Do Kester
37
37
38
38
class BaseModel ( object ):
39
39
"""
@@ -83,12 +83,12 @@ class BaseModel( object ):
83
83
parNames : list of str
84
84
list of parameter names. (default : "parameter_k")
85
85
86
- Author : Do Kester
86
+ Author Do Kester
87
87
88
88
"""
89
89
90
90
# *************************************************************************
91
- def __init__ ( self , nparams = 0 , ndim = 1 , copy = None , posIndex = [], nonZero = [], ** kwargs ):
91
+ def __init__ ( self , nparams = 0 , ndim = 1 , ndout = None , copy = None , posIndex = [], nonZero = [], ** kwargs ):
92
92
"""
93
93
BaseModel Constructor.
94
94
<br>
@@ -113,6 +113,8 @@ def __init__( self, nparams=0, ndim=1, copy=None, posIndex=[], nonZero=[], **kwa
113
113
if copy is None :
114
114
setatt ( self , "npbase" , nparams )
115
115
setatt ( self , "ndim" , ndim )
116
+ if ndout is not None :
117
+ setatt ( self , "ndout" , ndout , type = int )
116
118
setatt ( self , "priors" , None )
117
119
setatt ( self , "posIndex" , numpy .asarray ( posIndex , dtype = int ) )
118
120
setatt ( self , "nonZero" , numpy .asarray ( nonZero , dtype = int ) )
@@ -123,6 +125,8 @@ def __init__( self, nparams=0, ndim=1, copy=None, posIndex=[], nonZero=[], **kwa
123
125
else :
124
126
setatt ( self , "npbase" , copy .npbase )
125
127
setatt ( self , "ndim" , copy .ndim )
128
+ if "ndout" in vars ( copy ) :
129
+ setatt ( self , "ndout" , copy .ndout , type = int )
126
130
setatt ( self , "priors" , None if copy .priors is None else copy .priors .copy () )
127
131
setatt ( self , "posIndex" , copy .posIndex )
128
132
setatt ( self , "nonZero" , copy .nonZero )
0 commit comments