Skip to content

Commit cb28708

Browse files
committed
bug fix trunctated gaussian
1 parent 581c322 commit cb28708

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,5 @@ ENV/
119119

120120
# macOS temporary files
121121
.DS_Store
122+
*.png
123+
*.pdf

comet_maths/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.7"
1+
__version__ = "1.0.8"

comet_maths/generate_sample/generate_sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,21 +512,21 @@ def generate_sample_correlated(
512512
if len(corr_x[i]) == len(u_x[i].ravel()):
513513
# cov_x = cm.convert_corr_to_cov(corr_x[i], u_x[i])
514514
MC_data = generate_sample_corr(
515-
MCsteps, x[i], u_x[i], corr_x[i], dtype=dtype
515+
MCsteps, x[i], u_x[i], corr_x[i], dtype=dtype, pdf_shape=pdf_shape, pdf_params=pdf_params
516516
)
517517
elif len(corr_x[i]) == len(u_x[i]):
518518
MC_data = np.zeros((MCsteps,) + (u_x[i].shape))
519519
for j in range(len(u_x[i][0])):
520520
# cov_x = cm.convert_corr_to_cov(corr_x[i], u_x[i][:, j])
521521
MC_data[:, :, j] = generate_sample_corr(
522-
MCsteps, x[i][:, j], u_x[i][:, j], corr_x[i], dtype=dtype
522+
MCsteps, x[i][:, j], u_x[i][:, j], corr_x[i], dtype=dtype, pdf_shape=pdf_shape, pdf_params=pdf_params
523523
)
524524
elif u_x[i].ndim > 1 and len(corr_x[i]) == len(u_x[i][0]):
525525
MC_data = np.zeros((MCsteps,) + (u_x[i].shape))
526526
for j in range(len(u_x[i][:, 0])):
527527
# cov_x = cm.convert_corr_to_cov(corr_x[i], u_x[i][j])
528528
MC_data[:, j, :] = generate_sample_corr(
529-
MCsteps, x[i][j], u_x[i][j], corr_x[i], dtype=dtype
529+
MCsteps, x[i][j], u_x[i][j], corr_x[i], dtype=dtype, pdf_shape=pdf_shape, pdf_params=pdf_params
530530
)
531531
else:
532532
raise NotImplementedError(

0 commit comments

Comments
 (0)