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

StratifiedSample software eng edits, reorder, testing #95

Merged
merged 11 commits into from
Nov 28, 2022

Conversation

smishr
Copy link
Contributor

@smishr smishr commented Nov 25, 2022

Similar to the other PR for SimpleRandomSample, incorporates type checking and better if-else ladder for StratifiedSample

@smishr smishr added enhancement New feature or request high priority High priority tasks, eg. relating to release labels Nov 25, 2022
@smishr smishr added this to the 0.2.0 release milestone Nov 25, 2022
@smishr smishr self-assigned this Nov 25, 2022
@smishr
Copy link
Contributor Author

smishr commented Nov 26, 2022

Have overhauled the src of StratifiedSample, still have to write correct testing suite

@@ -178,75 +179,158 @@ end
StratifiedSample <: AbstractSurveyDesign

Survey design sampled by stratification.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the doc should have an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay. ill add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how many lines of output must be copied into doctring?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added and fixed the jldoctests. They have to be spaced right to margin, no tabs before to be displayed like a code block

@smishr smishr marked this pull request as ready for review November 28, 2022 06:20
@codecov-commenter
Copy link

Codecov Report

Merging #95 (e563431) into design_update (004eb07) will increase coverage by 3.23%.
The diff coverage is 77.50%.

@@                Coverage Diff                @@
##           design_update      #95      +/-   ##
=================================================
+ Coverage          43.93%   47.16%   +3.23%     
=================================================
  Files                 15       15              
  Lines                528      583      +55     
=================================================
+ Hits                 232      275      +43     
- Misses               296      308      +12     
Impacted Files Coverage Δ
src/show.jl 0.00% <0.00%> (ø)
src/svyby.jl 0.00% <0.00%> (ø)
src/SurveyDesign.jl 73.39% <92.53%> (+6.53%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@smishr smishr merged commit a4b9790 into xKDR:design_update Nov 28, 2022
@smishr smishr deleted the design_update_stratified branch November 28, 2022 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority High priority tasks, eg. relating to release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants