Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor scene to privatize some attributes and methods #1300

Merged
merged 1 commit into from Aug 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions satpy/multiscene.py
Expand Up @@ -520,7 +520,8 @@ def load_data(frame_gen, q):
else:
log.debug("Child thread died successfully")

def _simple_frame_compute(self, writers, frame_keys, frames_to_write):
@staticmethod
def _simple_frame_compute(writers, frame_keys, frames_to_write):
"""Compute frames the plain dask way."""
for frame_arrays in frames_to_write:
for frame_key, product_frame in zip(frame_keys, frame_arrays):
Expand All @@ -546,7 +547,7 @@ def _get_writers_and_frames(
scenes = list(scenes)
info_scenes.append(scenes[-1])

available_ds = [first_scene.datasets.get(ds) for ds in first_scene.wishlist]
available_ds = [first_scene.get(ds) for ds in first_scene.wishlist]
available_ds = [DataID.from_dataarray(ds) for ds in available_ds if ds is not None]
dataset_ids = datasets or available_ds

Expand Down