Importing EasyDiffraction library #95
Replies: 3 comments 6 replies
-
|
Minor quibble: from EasyDiffraction import Job |
Beta Was this translation helpful? Give feedback.
-
|
Just to understand. So what is proposed is to create a library called If I understand it correctly I fear that it can cause significant confusion that we will then have the two libraries Are we not able to obtain a similar behavior by having the |
Beta Was this translation helpful? Give feedback.
-
|
Another suggestion from @andped10 is to follow a more pythonic way of naming packages and modules (see PEP 8): Modules should have short, all-lowercase names. Underscores can be used in the module name if it improves readability. Python packages should also have short, all-lowercase names, although the use of underscores is discouraged. So far we have used the way the Qt library So instead of, for example, doing this it is proposed to do the following |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I propose to discuss here a way of importing EasyDiffraction library by user.
The main idea is to reduce the number of imported EasyScience modules (EasyCore, EasyCrystallography, EasyDiffraction) to as few as possible. An experienced user should be able to import the necessary classes when needed, but the default import should be minimal. This should be possible using the
Jobwrapper concept, which will be discussed elsewhere (#96).⚙ Current
💡 Suggested
Beta Was this translation helpful? Give feedback.
All reactions