Skip to content

Commit

Permalink
DOC
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Mar 18, 2020
1 parent 340e64e commit 972dcb6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/adl2pydm/output_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ def write_block_cartesian_plot(self, parent, block, nm, qw):
except ValueError:
logger.warning(
"number of plot points must be an integer, "
f"received '{count}', "
f"using {DEFAULT_NUMBER_OF_POINTS} points"
f"using {DEFAULT_NUMBER_OF_POINTS} points "
f"instead of '{count}'"
)
count = DEFAULT_NUMBER_OF_POINTS

Expand Down Expand Up @@ -473,8 +473,9 @@ def write_block_cartesian_plot(self, parent, block, nm, qw):
for k in list(curve.keys())
if curve[k] is not None
}
curve["x_channel"] = curve.get("x_channel", None)
for k in "x_channel y_channel".split():
if k in curve:
if k in curve and curve[k] is not None:
# add the "ca://" prefix
curve[k] = f"ca://{curve[k]}"
if "y_channel" in curve:
Expand Down

0 comments on commit 972dcb6

Please sign in to comment.