Skip to content

Conversation

@sr525
Copy link
Collaborator

@sr525 sr525 commented Aug 1, 2022

No description provided.

@sr525 sr525 force-pushed the tickets/DM-35607 branch 2 times, most recently from 05b102c to a09b0e8 Compare August 1, 2022 17:39
Copy link
Contributor

@cmsaunders cmsaunders left a 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:

Copy link
Contributor

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(
Copy link
Contributor

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:
Copy link
Contributor

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")
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@sr525 sr525 force-pushed the tickets/DM-35607 branch 2 times, most recently from 7b6d1bb to 0230df5 Compare August 1, 2022 20:41
@sr525
Copy link
Collaborator Author

sr525 commented Aug 2, 2022

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.

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.

@sr525 sr525 force-pushed the tickets/DM-35607 branch 8 times, most recently from 1aa6cba to 58eb875 Compare August 2, 2022 15:43
@sr525 sr525 force-pushed the tickets/DM-35607 branch from 58eb875 to d08856f Compare August 2, 2022 15:46
@sr525 sr525 merged commit 65ee9c5 into main Aug 2, 2022
@sr525 sr525 deleted the tickets/DM-35607 branch August 2, 2022 16:35
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.

3 participants