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: create Values from strings #6352

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Conversation

noahnovsak
Copy link
Contributor

Issue

Cannot create a discrete Value from it's string representation. This means indexing into SQLTable like table[row, variable] doesn't work.

Description of changes

add special case for DiscreteVariable in Values __new__ method as well as extending sqltable tests.

@codecov
Copy link

codecov bot commented Feb 27, 2023

Codecov Report

Merging #6352 (728e12b) into master (5330c9f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6352      +/-   ##
==========================================
- Coverage   87.40%   87.40%   -0.01%     
==========================================
  Files         317      317              
  Lines       68224    68226       +2     
==========================================
+ Hits        59629    59630       +1     
- Misses       8595     8596       +1     

@markotoplak markotoplak merged commit 8b8b358 into biolab:master Feb 27, 2023
@noahnovsak noahnovsak deleted the str-value branch February 27, 2023 12:47
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.

2 participants