Skip to content

Commit

Permalink
CNL: remove irrelevant comment and add a docstring to the `_get_curre…
Browse files Browse the repository at this point in the history
…nt_dataset` method
  • Loading branch information
mrakitin committed Feb 18, 2024
1 parent f63e243 commit 618cbb3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/srx_caproto_iocs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ async def stage(self, instance, value):
return False

def _get_current_dataset(self, frame):
"""The method to return a desired dataset.
See https://scikit-image.org/docs/stable/auto_examples/data/plot_3d.html
for details about the dataset returned by the base class' method.
"""
dataset = skimage.data.cells3d().sum(axis=1)
return dataset[frame, ...]

Expand Down Expand Up @@ -213,9 +218,6 @@ def saver(request_queue, response_queue):
success = True
error_message = ""
except Exception as exc: # pylint: disable=broad-exception-caught
# The GeRM detector happens to response twice for a single
# ".CNT" put, so capture an attempt to save the file with the
# same name here and do nothing.
success = False
error_message = exc
print(
Expand Down

0 comments on commit 618cbb3

Please sign in to comment.