-
Notifications
You must be signed in to change notification settings - Fork 187
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
Script interface maintenance #4482
Script interface maintenance #4482
Conversation
Use tqdm instead of print statements. Use f-strings and numpy tools more frequently. Avoid using `from X import Y` (namespace pollution).
Replace `from X import Y` by `import X` and `X.Y` in the Cython interface and remove unused imports.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Fix typos and line breaks. Remove duplicated variable types (the System class property docstrings contain the up-to-date types).
The physics is broken since release 4.0.0: logarithm input values can be null or negative when moving the GUI sliders and the phase diagram is incorrect. The script is also completely untested and the NpT integrator is not properly configured.
ed3e388
to
8be90ab
Compare
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.
PR seems very fine to me. One point though:
As far as I know, we need lj-demo.py for Tag der Wissenschaft. Is there anyone actively working to fix the demo?
@@ -560,7 +559,7 @@ class Analysis: | |||
raise ValueError("type_list_b has to be a list!") | |||
|
|||
if r_max is None: | |||
box_l = make_array_locked(< Vector3d > box_geo.length()) |
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.
How was this never caught by anyone?
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'm not sure, there should have been a warning about the redundant cast according to the Cython docs on type casting.
Not that I know. I sent an email to David and Julian on March 22 to inform them of the planned removal and invite them to voice their objection, but got no reply. For the TdW event, people can use PyStar (#4382). When I used |
Also use more specific exceptions.
Description of changes:
espressomd.reaction_ensemble
toespressomd.reaction_methods
EXPERIMENTAL_FEATURES
new
expressions in the script interfaceNone
)from X import Y
byimport X
andX.Y
in samples and python interfacetqdm
,numpy
and f-strings more often in the sampleslj-demo.py
(fixes lj-demo.py is broken #4347)