Skip to content

Commit

Permalink
FIX: Fixing issues in PR #1108
Browse files Browse the repository at this point in the history
  • Loading branch information
zdomke committed Sep 13, 2024
1 parent 19e74f6 commit 7143407
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pydm/widgets/archiver_time_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def addYChannel(
"""
Overrides timeplot addYChannel method to be able to pass the liveData flag.
"""
return super().addYChannel(
curve = super().addYChannel(
y_channel=y_channel,
plot_style=plot_style,
name=name,
Expand All @@ -942,6 +942,8 @@ def addYChannel(
useArchiveData=useArchiveData,
liveData=liveData,
)
self.requestDataFromArchiver()
return curve

def addFormulaChannel(self, yAxisName: str, **kwargs) -> FormulaCurveItem:
"""Creates a FormulaCurveItem and links it to the given y axis"""
Expand Down
3 changes: 2 additions & 1 deletion pydm/widgets/timeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ def __init__(self, channel_address=None, plot_by_timestamps=True, plot_style="Li
self.points_accumulated = 0
self.latest_value = None
self.channel = None
self.address = channel_address
self.units = ""

super(TimePlotCurveItem, self).__init__(**kws)
self.address = channel_address

def to_dict(self):
dic_ = OrderedDict([("channel", self.address), ("plot_style", self.plot_style)])
Expand Down

0 comments on commit 7143407

Please sign in to comment.