MAINT: QMCEngine d input validation#13940
Merged
mdhaber merged 2 commits intoscipy:masterfrom Apr 27, 2021
Merged
Conversation
mdhaber
reviewed
Apr 26, 2021
mdhaber
reviewed
Apr 26, 2021
| with pytest.raises(ValueError, match=r"Maximum supported " | ||
| r"dimensionality"): | ||
| qmc.Sobol(qmc.Sobol.MAXDIM + 1) | ||
| qmc.Sobol(qmc.Sobol.MAXDIM + 1, seed=seed) |
Contributor
There was a problem hiding this comment.
This is unrelated, right? (That's ok, since this PR is so simple - just checking.)
Member
Author
There was a problem hiding this comment.
It was not needed before as the init happened before this validation. Now that super is called first, it's needed (for the case np < 1.17)
mdhaber
reviewed
Apr 26, 2021
Co-authored-by: Matt Haberland <mhaberla@calpoly.edu>
Contributor
|
LGTM thanks @tupui! |
Member
Author
|
Thanks for the quick review Matt. |
patnr
added a commit
to patnr/scipy
that referenced
this pull request
May 3, 2021
* master: (164 commits) DOC: Add Karl Pearson's reference to chi-square test (scipy#13971) BLD: fix build warnings for causal/anticausal pointers in ndimage MAINT: stats: Fix unused imports and a few other issues related to imports. DOC: fix typo MAINT: Remove duplicate calculations in sokalmichener BUG: spatial: fix weight handling of `distance.sokalmichener`. DOC: update Readme (scipy#13910) MAINT: QMCEngine d input validation (scipy#13940) MAINT: forward port 1.6.3 relnotes REL: add PEP 621 (project metadata in pyproject.toml) support EHN: signal: make `get_window` supports `general_cosine` and `general_hamming` window functions. (scipy#13934) ENH/DOC: pydata sphinx theme polishing (scipy#13814) DOC/MAINT: Add copyright notice to qmc.primes_from_2_to (scipy#13927) BUG: DOC: signal: fix need argument config and add missing doc link for `signal.get_window` DOC: fix subsets docstring (scipy#13926) BUG: signal: fix get_window argument handling and add tests. (scipy#13879) ENH: stats: add 'alternative' parameter to ansari (scipy#13650) BUG: Reactivate conda environment in init MAINT: use dict built-in rather than OrderedDict Revert "CI: Add nightly release of NumPy in linux workflows (scipy#13876)" (scipy#13909) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As pointed out in #13319,
dis not checked when instantiatingQMCEngine.