diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2016-03-06 23:22:55 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2016-03-06 23:22:55 -0800 |
| commit | 7f7b01db3295be7b653eb8d018e716b2349e60b9 (patch) | |
| tree | 1dae2cca6e3ca551a7b7d2d8809a5fea026f370b | |
| parent | f5b77df7133aca78d3f7f473a2b9afcb8dac5cc2 (diff) | |
looking great
| -rw-r--r-- | photoblaster/_file.py | 4 | ||||
| -rw-r--r-- | run_module_examples.py | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/photoblaster/_file.py b/photoblaster/_file.py index 4a16000..8308d8c 100644 --- a/photoblaster/_file.py +++ b/photoblaster/_file.py @@ -121,11 +121,11 @@ class File(object): sys.stderr.write("couldn't get gif frames\n") raise e - def compress_to_single_frame(self, module=None, random=True): + def compress_to_single_frame(self, module=None, choose_random=True): _gif_frames = self.get_frames() if len(_gif_frames) == 1: return - if random: + if choose_random: frame = random.choice(_gif_frames) else: frame = _gif_frames[0] diff --git a/run_module_examples.py b/run_module_examples.py index 27fd13c..1aae58c 100644 --- a/run_module_examples.py +++ b/run_module_examples.py @@ -4,11 +4,11 @@ from photoblaster.modules import Modules modules = Modules() for module_name in modules.list_modules(): - if module_name == "pbconcat": - print "\n\n\n" - print "running example for %s" % module_name - cls = modules.get_module(module_name) - instance = cls.example_run() - instance.get_output_file().s3move() - print instance.get_output_file().as_dict() - instance.db_send() +# if module_name == "pbconcat": + print "\n\n\n" + print "running example for %s" % module_name + cls = modules.get_module(module_name) + instance = cls.example_run() + instance.get_output_file().s3move() + print instance.get_output_file().as_dict() + instance.db_send() |
