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

Change all uses of wts to weights #570

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Change all uses of wts to weights #570

wants to merge 2 commits into from

Conversation

andreasnoack
Copy link
Member

Closes #350

I've also removed some outdated developer comments instead of updating names of functions that no longer exist. I'm opening this PR against the PR that fixes the doc build on Julia 1.11 to make tests pass. GitHub will automatically change the target branch to master once #569 has been merged.

@andreasnoack andreasnoack force-pushed the an/deploydoc branch 5 times, most recently from 77f53df to 43f7546 Compare November 19, 2024 19:09
Base automatically changed from an/deploydoc to master November 19, 2024 20:43
@nalimilan
Copy link
Member

Thanks for this. Could you add a deprecation for the wts argument? Better limit breakage when it's easy to do.

@nalimilan
Copy link
Member

Also, if we want to release 2.0 quickly so that #487 may not be merged yet, it would be good to have this PR require weights to be FrequencyWeights, AnalyticalWeights or ProbabilityWeights, with an error message indicating to do weights=fweights(wts) to get the 1.x behavior. Otherwise we'll have to keep silently assuming that weights are frequencies, which often leads to mistakes (in R analytical weights are assumed).

@andreasnoack
Copy link
Member Author

I think we should wait for #487. It seems really close. I'll update this PR once #487 has been merged.

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.

Change wts keyword argument name to weights
2 participants