Skip to content

Commit 28ed279

Browse files
Merge pull request #464 from DataverseLabs/main
Sync with main before the release
2 parents d3e2004 + 9022894 commit 28ed279

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pyinterpolate/semivariogram/experimental/classes/experimental_variogram.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)