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

NDStats docs update #500

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/ophyd_async/epics/adcore/_core_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,27 @@ def __init__(self, prefix: str, name: str = "") -> None:
class NDPluginStatsIO(NDPluginBaseIO):
"""
Plugin for computing statistics from an image or region of interest within an image.
Each boolean signal enables or disables all signals in the appropriate Enum class.
The enum signals may used in the ScalarSignals kwargs of a HDFWriter, and are also
read-only signals on the plugin.
ZohebShaikh marked this conversation as resolved.
Show resolved Hide resolved
"""

def __init__(self, prefix: str, name: str = "") -> None:
self.total_array = epics_signal_rw(float, prefix + "TotalArray")
# Basic statistics
self.compute_statistics = epics_signal_rw(bool, prefix + "ComputeStatistics")
self.bgd_width = epics_signal_rw(int, prefix + "BgdWidth")
self.total_array = epics_signal_rw(float, prefix + "TotalArray")
# Centroid statistics
self.compute_centroid = epics_signal_rw(bool, prefix + "ComputeCentroid")
self.centroid_threshold = epics_signal_rw(float, prefix + "CentroidThreshold")
# X and Y Profiles
self.compute_profiles = epics_signal_rw(bool, prefix + "ComputeProfiles")
self.profile_size_x = epics_signal_rw(int, prefix + "ProfileSizeX")
self.cursor_x = epics_signal_rw(int, prefix + "CursorX")
self.profile_size_y = epics_signal_rw(int, prefix + "ProfileSizeY")
self.cursor_x = epics_signal_rw(int, prefix + "CursorX")
self.cursor_y = epics_signal_rw(int, prefix + "CursorY")
# Array Histogram
self.compute_histogram = epics_signal_rw(bool, prefix + "ComputeHistogram")
self.hist_max = epics_signal_rw(float, prefix + "HistMax")
self.hist_min = epics_signal_rw(float, prefix + "HistMin")
self.hist_size = epics_signal_rw(int, prefix + "HistSize")
self.hist_min = epics_signal_rw(float, prefix + "HistMin")
self.hist_max = epics_signal_rw(float, prefix + "HistMax")
super().__init__(prefix, name)


Expand Down
Loading