Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensures that REncoder also checks for numpy.bool_ in encode_value #1749

Merged
merged 7 commits into from Jul 19, 2022

Conversation

Christian-Heyer
Copy link
Contributor

Description

Fixes #1045 which was caused when np.bool_ type was used for boolean values and was slipping through the instance checking and raising an error.

QC

  • [x ] The PR contains a test case for the changes or the changes are already covered by an existing test case.
  • The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

@Christian-Heyer Christian-Heyer changed the title fix:ensures that REncoder also checks for numpy.bool_ in encode_value fix: ensures that REncoder also checks for numpy.bool_ in encode_value Jun 29, 2022
snakemake/script.py Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@johanneskoester johanneskoester merged commit 10a6e1d into snakemake:main Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Boolean values with Paramspace Expansion fails with R scripts
2 participants