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 and add in-place constructor #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Mar 20, 2024

  1. Refactor SurveyDesign and add in-place constructor

    This commit introduces a significant refactor to the `SurveyDesign` struct in the `SurveyDesign.jl` file. A new in-place constructor function, `SurveyDesign!`, has been added to allow for direct manipulation of the passed `AbstractDataFrame`. This change aims to enhance the flexibility and efficiency of survey design creation by providing an option to modify the data frame in place.
    
    Additionally, minor formatting adjustments were made to improve code readability and consistency across the file. These include alignment of default parameter values and minor adjustments to spacing and line breaks.
    
    The introduction of the `SurveyDesign!` function follows the Julia convention of using the `!` suffix to indicate functions that modify their arguments in place. This change is expected to make the API more intuitive for users familiar with Julia conventions.
    
    Overall, this refactor and the addition of the in-place constructor enhance the library's usability and maintainability.
    EngPeterAtef committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    980fd51 View commit details
    Browse the repository at this point in the history