Skip to content

Commit

Permalink
Fix image_list for latest processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored Apr 19, 2024
1 parent d44afac commit 19fd759
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/panoptes/data/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class for accessing information about an observation.
self.meta = dict()

self.image_metadata = self.get_metadata(query=image_query)
self.image_list = self.get_image_list()
self.image_list = self.image_metadata.public_url.values

def get_image_cutout(self, data=None, coords=None, box_size=None, *args, **kwargs):
"""Gets a Cutout2D object for the given coords and box_size."""
Expand Down Expand Up @@ -97,18 +97,6 @@ def get_metadata(self, query=''):

return images_df

def get_image_list(self, bucket='panoptes-images-incoming', file_ext='.fits.fz'):
"""Get the images for the observation."""

# Build up the image list from the metadata.
image_list = [self._settings.img_base_url.unicode_string()
+ bucket + '/'
+ str(s).replace("_", "/")
+ file_ext for s in
self.image_metadata.uid.values]

return image_list

def download_images(self, image_list=None, output_dir=None, show_progress=True,
warn_on_error=True):
"""Download the images to the output directory (by default named after the sequence_id).
Expand Down

0 comments on commit 19fd759

Please sign in to comment.