Open
Conversation
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 0aefb48 |
5 tasks
nmerket
reviewed
Oct 3, 2022
nmerket
left a comment
There was a problem hiding this comment.
I appreciate the thorough testing. Is this ready for primetime?
Rather than replacing the current ruby based sampler here, I'd prefer if you added a new sampler file and class. That way people can go back to the old one for a while during a transition period.
.github/workflows/ci.yml
Outdated
| fail-fast: false | ||
| matrix: | ||
| python-version: ['3.8', '3.9', '3.10'] | ||
| python-version: ['3.10'] |
There was a problem hiding this comment.
Why are we only testing Python 3.10 now? I'd like to keep some level of backwards compatibility.
Collaborator
Author
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.
Pull Request Description
Python version of the sampling script. There are also helper testing script that can verify if a given buildstock.csv is correct or not according to the TSVs.
Use buildstockbatch normally, and it will use the faster python based sampler automatically for residential.
To use the sampler stand alone, a new command
resstock_samplercan be used.There are two commands available
sampleto perform sampling, andverifyto verify existing buildstock.csv for correctness.Usage example:
resstock_sampler sample -p /Users/radhikar/Documents/resstock/project_national -o resstock_sampler_test.csvresstock_sampler verify resstock_sampler_test.csv -p /Users/radhikar/Documents/resstock/project_nationalChecklist
Not all may apply
minimum_coveragein.github/workflows/ci.ymlas necessary.