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

Refactor SurveyDesign constructor to SurveyDesign! #318

Closed
wants to merge 3 commits into from
Closed

Refactor SurveyDesign constructor to SurveyDesign! #318

wants to merge 3 commits into from

Conversation

EngPeterAtef
Copy link

This commit updates the SurveyDesign constructor to SurveyDesign! across multiple files including SurveyDesign.jl, by.jl, and runtests.jl. The change reflects a move towards a more explicit indication of in-place modifications or significant changes that the constructor might perform on the data it receives. This naming convention aligns with Julia's standard practice of using the bang symbol (!) to denote functions that modify their arguments or have important side effects.

Additionally, minor formatting adjustments were made in runtests.jl to improve code readability and consistency with Julia's style guidelines.

This commit updates the SurveyDesign constructor to SurveyDesign! across
multiple files including SurveyDesign.jl, by.jl, and runtests.jl. The change
reflects a move towards a more explicit indication of in-place modifications
or significant changes that the constructor might perform on the data it
receives. This naming convention aligns with Julia's standard practice of
using the bang symbol (!) to denote functions that modify their arguments
or have important side effects.

Additionally, minor formatting adjustments were made in runtests.jl to
improve code readability and consistency with Julia's style guidelines.
by mistake I changed the names of classes not fucntions
Copy link
Author

@EngPeterAtef EngPeterAtef left a comment

Choose a reason for hiding this comment

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

remove wrong edits

This commit updates the usage of `SurveyDesign` to `SurveyDesign!` in various instances within the test suite. The change reflects the need for mutable operations on the survey design objects, aligning with the Julia convention of using the bang symbol (!) to indicate functions that modify their arguments in place. This adjustment ensures that the test suite correctly utilizes the API for creating and modifying survey designs, particularly in the context of applying bootstrap and jackknife weights, as well as handling different sampling strategies such as simple random sampling, stratified sampling, and cluster sampling. The update is critical for maintaining the integrity and accuracy of the survey analysis tests.
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.

1 participant