Skip to content

Conversation

henryiii
Copy link
Member

@henryiii henryiii commented Jul 7, 2021

  • tests: nicer config
  • fix: support label and better testing

raise NotImplementedError("Currently overlay is not supported")

if self._stack[0].ndim != 1:
import hist.plot
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides piggy-backing on our existing mechanism for replacing this, it also makes it easy to monkeypatch in tests, too!

return iter(self._stack)

def plot(self, *, overlay: None = None, **kwargs: Any) -> "List[Hist1DArtists]":
def __len__(self) -> int:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot this earlier.



@nox.session(python=ALL_PYTHONS)
@nox.session(python=ALL_PYTHONS, reuse_venv=True)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is safe. Let's try it, anyway; it saves quite a few (15-20) seconds for me.

@henryiii henryiii merged commit 8c0b915 into main Jul 7, 2021
@henryiii henryiii deleted the henryiii/fix/stack2 branch July 7, 2021 05:00
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