Skip to content

Commit

Permalink
Merge branch 'issue-580'
Browse files Browse the repository at this point in the history
  • Loading branch information
talister committed Nov 18, 2021
2 parents b94c7b6 + 29bf575 commit adca7e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions neoexchange/core/management/commands/lightcurve_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ def handle(self, *args, **options):
movie_file = make_gif(frames_list, sort=False, init_fr=100, center=3, out_path=data_path, plot_source=True,
target_data=frame_data, show_reticle=True, progress=True)
if "WARNING" not in movie_file:
# Add write permissions to movie file
try:
os.chmod(movie_file, rw_permissions)
except PermissionError:
pass
# Create DataProduct
save_dataproduct(obj=block, filepath=movie_file, filetype=DataProduct.FRAME_GIF, force=options['overwrite'])
output_file_list.append('{},{}'.format(movie_file, data_path.lstrip(out_path)))
Expand Down

0 comments on commit adca7e1

Please sign in to comment.