Skip to content

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