kritsg commited on
Commit
2bcb4cb
·
1 Parent(s): 0cfdd1d

debugging inability to produce correct gif depending on parameters

Browse files
Files changed (1) hide show
  1. image_posterior.py +3 -3
image_posterior.py CHANGED
@@ -54,9 +54,9 @@ def create_gif(explanation_blr, img_name, segments, image, n_images=20, n_max=5)
54
  """
55
  draws = explanation_blr.draw_posterior_samples(n_images)
56
  # Setup temporary directory to store paths in
57
- print("tempfile.tempdir:", tempfile.TemporaryDirectory)
58
- if(os.path.exists(tempfile.TemporaryDirectory)):
59
- os.remove(tempfile.TemporaryDirectory)
60
 
61
  with tempfile.TemporaryDirectory() as tmpdirname:
62
  paths = []
 
54
  """
55
  draws = explanation_blr.draw_posterior_samples(n_images)
56
  # Setup temporary directory to store paths in
57
+ print("tempfile.tempdir:", tempfile.TemporaryDirectory())
58
+ if(os.path.exists(tempfile.TemporaryDirectory())):
59
+ os.remove(tempfile.TemporaryDirectory())
60
 
61
  with tempfile.TemporaryDirectory() as tmpdirname:
62
  paths = []