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

new options for log and sdata tools #6

Merged
merged 4 commits into from Jan 4, 2021
Merged

Conversation

sjplimp
Copy link

@sjplimp sjplimp commented Dec 23, 2020

@rbberger One Q on this PR. The first line of src/pizza.py now uses env. I want it to invoke "python -i" on pizza.py so that it stays in interpreter mode after loading all the tools. That works on my Mac, but not Linux (RedHat), I think b/c the syntax for env is different. So is there a portable way to do that?

@@ -1,4 +1,4 @@
#!/usr/local/bin/python -i
#!/usr/bin/env python -i
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjplimp No, there is no portable way to do it that I'm aware of. IMHO this is going the wrong way since I would see pizza as an add-on package that is loaded after launching the interpreter.

src/dump.py Outdated
@@ -502,7 +502,7 @@ def scale_one(self,snap,x,y,z):
h4inv = (h3*h5 - h1*h4) / (h0*h1*h2)
h5inv = xy / (h0*h1)
atoms = snap.atoms
if atoms != None:
if type(atoms) != types.NoneType:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this enable or solve?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't remember. Someone told me it fixed some problem, but if you don't think so I can remove those changes.

@sjplimp
Copy link
Author

sjplimp commented Jan 4, 2021

@rbberger ok - I think this is ready to merge

@rbberger rbberger merged commit fe99bb9 into master Jan 4, 2021
@rbberger rbberger deleted the sdata-log-enhance branch January 4, 2021 22:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants