-
Notifications
You must be signed in to change notification settings - Fork 34
Add a space group string representation, tested #45
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
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #45 +/- ##
==========================================
+ Coverage 95.11% 95.12% +0.01%
==========================================
Files 44 44
Lines 5203 5214 +11
==========================================
+ Hits 4949 4960 +11
Misses 254 254
Continue to review full report at Codecov.
|
sbillinge
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.
@hakonanes code looks good. I would like to capture this into docs/changelog if possible. @pavoljuhas is that done automatically here using commit messages (changelog) and scraping docstrings (docs)? We are behind with docs in general, but may as well handle this as well as we can moving forward...
pavoljuhas
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.
Hi Håkon, Thank you for your contribution. Please remove the change to .gitignore, it should not be mixed up with changes to actual functionality. (You can rebase with the fixup commit I added).
I have also added an empty new section to the CHANGELOG.md.
Can you please add a one-line description of this feature?
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
pavoljuhas
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.
I have noticed one more issue in the test, please correct.
Otherwise LGTM, thank you for contributing.
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
No, changelog needs to be updated manually. It is intended for users and should be easy to digest, it would be too noisy if generated from commit strings. |
|
Merged as fe4b46b. Thank you! |
|
Great, I hope other orix developers and I can contribute more in the future. Thank you! |
|
Thank you so much Hakon, we really appreciate it!
…On Tue, Jul 28, 2020 at 7:06 AM Håkon Wiik Ånes ***@***.***> wrote:
Great, I hope other orix developers and I can contribute more in the
future. Thank you!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAOWUKNRMIWZ7QW3RGRHCTR52WMPANCNFSM4PFRKENQ>
.
--
Professor Simon Billinge
Columbia University
|
Signed-off-by: Håkon Wiik Ånes hwaanes@gmail.com
Hi!
I'm one of the developers of the orix Python package (https://github.com/pyxem/orix) for handling crystal orientation mapping data. We're depending on diffpy.structure for storage and handling of unit cell information in our
Phaseobject, and will soon add a space group attribute via yourSpaceGroupclass to it. It would therefore be nice to have a string representation ofSpaceGroup, hence this PR.Result of this PR:
Added:
SpaceGroup.__repr__()detailing space group number, short name, crystal system, number of symmetry matrices and number of point group symmetry matrices.ideaand the htmlcov directory returned by$ coverage htmlto.gitignoreTests pass with Python 3.7 and Python 2.7 from Anaconda.
I'll be happy to shorten the string if you find it too long, or change it if you prefer another representation.