File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/pyinterpolate/semivariogram/experimental/classes Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -337,14 +337,19 @@ def __repr__(self):
337337
338338 cname = 'ExperimentalVariogram'
339339
340+ # NoneType has no tolist()
341+ custom_weights = (
342+ self .custom_weights .tolist () if self .custom_weights is not None else "None"
343+ )
344+
340345 input_params = (f'ds={ self .ds .tolist ()} ,'
341346 f'step_size={ self .step_size } ,'
342347 f'max_range={ self .max_range } ,'
343348 f'direction={ self .direction } ,'
344349 f'tolerance={ self .tolerance } ,'
345350 f'dir_neighbors_selection_method={ self .method } ,'
346351 f'custom_bins={ self .lags .tolist ()} ,'
347- f'custom_weights={ self . custom_weights . tolist () } ,'
352+ f'custom_weights={ custom_weights } ,'
348353 f'is_semivariance={ self .__c_sem } ,'
349354 f'is_covariance={ self .__c_cov } ' )
350355
You can’t perform that action at this time.
0 commit comments