Added support for tuples in option checking. Fixes #3303 #3381
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.
Description
Earlier:
![Screenshot 2023-09-29 at 9 24 25 PM](https://private-user-images.githubusercontent.com/111041731/271656098-42bdd196-f403-4d18-b31e-926862fdd6d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTEyODMsIm5iZiI6MTczOTMxMDk4MywicGF0aCI6Ii8xMTEwNDE3MzEvMjcxNjU2MDk4LTQyYmRkMTk2LWY0MDMtNGQxOC1iMzFlLTkyNjg2MmZkZDZkMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMTU2MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NjIwZTE0MGJhZjAyOGQyNTFjMDdjNmU4N2JlNWM2OWU2MzY4OWRiNjQxMmE3MWQ5MDNlNzU5NGJkYmM4YWM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Wb7aDfGvb474hRgwNR4NZi51VOHOK1fqMzhoXayr3N8)
Earlier "particle size" was not treated as a tuple and this caused problem as explained in Issue #3303.
Now:
Now, there is added compatibility for "particle size" to be either a tuple or a single value.
Fixes #3303
Key checklist:
$ pre-commit run
(or$ nox -s pre-commit
) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
(or$ nox -s tests
)$ python run-tests.py --doctest
(or$ nox -s doctests
)