@@ -148,14 +148,14 @@ def __init__(self,
148148 _target_vp = self .target_vars + self .target_pars
149149 if resolutions is None :
150150 for key , lim in self .target_vars .items ():
151- self .resolutions [key ] = bm .asarray ( np . linspace (* lim , 20 ) )
151+ self .resolutions [key ] = bm .linspace (* lim , 20 )
152152 for key , lim in self .target_pars .items ():
153- self .resolutions [key ] = bm .asarray ( np . linspace (* lim , 20 ) )
153+ self .resolutions [key ] = bm .linspace (* lim , 20 )
154154 elif isinstance (resolutions , float ):
155155 for key , lim in self .target_vars .items ():
156- self .resolutions [key ] = bm .asarray ( np . arange (* lim , resolutions ) )
156+ self .resolutions [key ] = bm .arange (* lim , resolutions )
157157 for key , lim in self .target_pars .items ():
158- self .resolutions [key ] = bm .asarray ( np . arange (* lim , resolutions ) )
158+ self .resolutions [key ] = bm .arange (* lim , resolutions )
159159 elif isinstance (resolutions , dict ):
160160 for key in resolutions .keys ():
161161 if key in self .target_var_names :
@@ -167,11 +167,11 @@ def __init__(self,
167167 f'the target parameters { self .target_par_names } .' )
168168 for key in self .target_var_names + self .target_par_names :
169169 if key not in resolutions :
170- self .resolutions [key ] = bm .asarray ( np . linspace (* _target_vp [key ], 20 ) )
170+ self .resolutions [key ] = bm .linspace (* _target_vp [key ], 20 )
171171 else :
172172 resolution = resolutions [key ]
173173 if isinstance (resolution , float ):
174- self .resolutions [key ] = bm .asarray ( np . arange (* _target_vp [key ], resolution ) )
174+ self .resolutions [key ] = bm .arange (* _target_vp [key ], resolution )
175175 elif isinstance (resolution , (bm .ndarray , np .ndarray , jnp .ndarray )):
176176 if not np .ndim (resolution ) == 1 :
177177 raise errors .AnalyzerError (f'resolution must be a 1D array, but get its '
0 commit comments