Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Store which params were used to generate .sav files #36

Open
kanzure opened this issue Sep 22, 2013 · 0 comments
Open

Store which params were used to generate .sav files #36

kanzure opened this issue Sep 22, 2013 · 0 comments

Comments

@kanzure
Copy link
Member

kanzure commented Sep 22, 2013

Not all .sav files are created the same. The decorator should save in a metadata file an entry about what parameters were used when calling a function. Then, when loading a save state to skip a function, only load a save state that matches the parameters. If that combination of parameters hasn't been played and saved yet, then play it.

There might be parameters that don't influence the save state structure, in which case, the skippable decorator should be given a list of which params don't matter.

@skippable(ignore=["some_param"])
def play_part5(self, some_param=None):
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant