Skip to content

attempt at switch for calculating population frequencies#157

Draft
savitakartik wants to merge 1 commit intotskit-dev:mainfrom
savitakartik:pop_freq_switch
Draft

attempt at switch for calculating population frequencies#157
savitakartik wants to merge 1 commit intotskit-dev:mainfrom
savitakartik:pop_freq_switch

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