-
Notifications
You must be signed in to change notification settings - Fork 9
Adding additional stuff #143
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
|
The plan now is:
|
SimoneMartino98
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 think we need some pytests more for this ? + a comment
overall great job, this is super useful.
| return pd.DataFrame(data) | ||
|
|
||
|
|
||
| def save_xyz_from_ndarray( |
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.
Maybe make a point more on the fact that we mean position coordinate (that must be (frame, atoms ,3)?
Or extend the function to create a general XYZ with fewer or more than 3 columns? The user in that case must specify the identity of each column (like Ovito).
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.
just a thought: In this case using pandas could help
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 specified better what this function is for, and added a note suggesting to use Trj if the system has more complexity.
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.
Surely pandas give more control but I don't want to force the user to use pandas... for instance I have no idea how to use it. Is this bad? -.-"
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.
It's not so difficult to use, and it contains some useful utilities for organizing datasets (remove cols, add cols, add rows). But anyway, it was just a possibility, keep this one.
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.
Let's not bring pandas into this, and if we do, we will use polars (pandas in rust).
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.
There's always another, better version of everything...
SimoneMartino98
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.
everything ok for me now; good job 👍
tests/lens/utilities.py
Outdated
|
|
||
|
|
||
| @numba.jit # type: ignore[misc] | ||
| @numba.jit # type: ignore[untyped-decorator] |
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.
njit == numba.jit?
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.
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.
Yes. I'll make it consistent with the lens.py file.
Requested Reviewers: @andrewtarzia @SimoneMartino98