-
Notifications
You must be signed in to change notification settings - Fork 3
Tickets/DM-35607: Get plot information from run quantum #22
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
Conversation
05b102c to
a09b0e8
Compare
cmsaunders
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. My only major comment is that it would be nice to add the plot information for the other plot types. It's your call on whether to do this, but you might want to poll people on what will be shown at the PCW, since it would be good to have the plot information on anything that is going to be shown to others.
| return base | ||
|
|
||
| def __call__(self, data: KeyedData, **kwargs) -> Mapping[str, Figure] | Figure: | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want to add a blank line here.
| vectorKey="patchWhole", selector=VectorSelector(vectorKey="starSelector") | ||
| ) | ||
|
|
||
| self.process.calculateActions.stars = ScatterPlotStatsAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to import ScatterPlotStatsAction. This is probably a rebase issue, as the import was removed on main recently.
| kwargs["plotInfo"] = _StandinPlotInfo() | ||
| for name, action in self.config.plots.items(): | ||
| for selector in action.prep.selectors: | ||
| try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The AttributeError is for cases where selector.threshold does not exist, right?Instead of the try/except, how about
if "threshold" in selector.keys(): kwargs["plotInfo"]["SN"] = selector.threshold
| """ | ||
| if names is None: | ||
| names = self.collectInputNames() | ||
| names.add("patch") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just put this line in collectInputNames? This would also prevent the mypy error that you are getting because not every Iterable has an add method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was left over from when I was experimenting with something. I've removed it and everything seems to be working.
7b6d1bb to
0230df5
Compare
I thought that it was applied to all the plot types but my test pipeline appears to have been demolished somewhere in the recent changes and the standard pipelines don't seem to have a variety of plots in them. |
1aa6cba to
58eb875
Compare
No description provided.