-
Notifications
You must be signed in to change notification settings - Fork 27
Tidy up streographic code + StructureLibrary changes #61
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
|
@dnjohnstone can I get conceptual approval on this so that I can go tidy up docstrings etc to get it ready to merge? |
Thanks @pc494 - yeah I agree that this is an improvement. I think we got a bit Generator happy at that point. As an aside, also noticed that we should be documenting Generator classes differently https://docs.scipy.org/doc/numpy-1.15.0/docs/howto_document.html#documenting-generators i.e. have "Yields" rather than "Returns" |
|
Cool, I'll tidy that up today then. I'm not so sure about the second part though, I think they mean |
Good point, thanks - fuzzy brain. |
name: Tidy up streographic code + StructureLibrary changes
about: This deletes some old code and streamlines the
StructureLibraryclassRelease Notes
What does this PR do? Please describe and/or link to an open issue.
Describe alternatives you've considered
Discussion on (2)
Previously our syntax involved using a generator that didn't do any "science" to create a library. I feel (@dnjohnstone please weigh in) that
Is a clear syntax, both for end user and developers. To claim what these methods do is "generation" seems a bit rich as it's just combining things with loops. c.f with
DiffractionGeneratorWork in progress?
If you know there is more to do, make a checklist here: