8000 FIX: ArchiverPlotCurveItem.to_dict keys Match Keyword Arguments of addYChannel by zdomke · Pull Request #1257 · slaclab/pydm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FIX: ArchiverPlotCurveItem.to_dict keys Match Keyword Arguments of addYChannel #1257

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

Merged
merged 1 commit into from
Jun 10, 2025
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
18 changes: 9 additions & 9 deletions pydm/widgets/archiver_time_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class ArchivePlotCurveItem(TimePlotCurveItem):
def __init__(
self,
channel_address: Optional[str] = None,
use_archive_data: bool = True,
useArchiveData: bool = True,
liveData: bool = True,
show_extension_line: bool = False,
showExtensionLine: bool = False,
**kws,
):
# Attributes that must exist before super().__init__() call
Expand All @@ -71,13 +71,13 @@ def __init__(

super().__init__(**kws)

self.use_archive_data = use_archive_data
self.use_archive_data = useArchiveData
self.archive_points_accumulated = 0
self._archiveBufferSize = DEFAULT_ARCHIVE_BUFFER_SIZE
self.archive_data_buffer = np.zeros((2, self._archiveBufferSize), order="f", dtype=float)
self._liveData = liveData

self._show_extension_line = show_extension_line
self._show_extension_line = showExtensionLine
if not self._show_extension_line:
self._extension_line.hide()

Expand Down Expand Up @@ -1248,15 +1248,15 @@ def addYChannel(
lowerThreshold=None,
thresholdColor=None,
yAxisName=None,
useArchiveData=False,
useArchiveData=True,
liveData=True,
show_extension_line=None,
showExtensionLine=None,
) -> ArchivePlotCurveItem:
"""
Overrides timeplot addYChannel method to be able to pass the liveData flag.
"""
if show_extension_line is None:
show_extension_line = self._show_extension_lines
if showExtensionLine is None:
showExtensionLine = self._show_extension_lines

curve = super().addYChannel(
y_channel=y_channel,
Expand All @@ -1274,7 +1274,7 @@ def addYChannel(
yAxisName=yAxisName,
useArchiveData=useArchiveData,
liveData=liveData,
show_extension_line=show_extension_line,
showExtensionLine=showExtensionLine,
)
if not is_qt_designer():
self.requestDataFromArchiver()
Expand Down
Loading
0