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

added check for baseline stream in for live line plotting #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whs92
Copy link
Member

@whs92 whs92 commented Nov 8, 2021

Description

The only change I have made is to add an if statement which checks whether the stream that is to be plotted has name baseline if it does, no new plot is made.

Motivation and Context

Aiming to solve problem where if a run is performed which contains baseline and primary (and maybe other plans) we don't really want to plot the baseline measurement. This can contain a lot of readings (=lines) that we don't really want to see in the plot

image

How Has This Been Tested?

I have only tested this by loading the widget using Jupyter and creating a run which has baseline and primary streams. I initially attempted to create a test in the pytests file but found that I couldn't use the build_simple_run function which was used in those tests because it only has one stream. The RunBuilder() would work, but I couldn't work out how to add incremeneting scan_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant