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

attempt at switch for calculating population frequencies #157

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

Conversation

savitakartik
Copy link
Collaborator

switch works, but there's an issue. I have to delete the cache directory everytime I change the switch between True and False as it will otherwise use the cached df.

any suggestions how to avoid this issue?

@savitakartik
Copy link
Collaborator Author

pop_freq_switch.mp4

@benjeffery
Copy link
Member

calc_population_frequencies needs to be an argument of the cached function, rather than accessed from self. Arguments are included in the cache key.

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.

2 participants