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

Feature request: Printable representation of Segment #3

Closed
ajjackson opened this issue Jul 14, 2018 · 1 comment
Closed

Feature request: Printable representation of Segment #3

ajjackson opened this issue Jul 14, 2018 · 1 comment

Comments

@ajjackson
Copy link

It would be nice if Segment objects had a standard printable representation, such as 2.3 eV [0 0 0] -> [1 0 1]. This can can be implemented by providing a __str__ method. It would make it easier to keep track of them and work with them interactively. The method implied in the tutorial is to repeatedly call plot_segments until you're sure you have the index of the one you want.

@lucydot
Copy link
Owner

lucydot commented Jul 16, 2018

Thanks for the suggestion - I've implemented this feature here and a usage example is in the notebook (under 'Generate band segments').

@lucydot lucydot closed this as completed Jul 16, 2018
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

No branches or pull requests

2 participants