Adding additional stuff#143
Conversation
|
The plan now is:
|
SimoneMartino98
left a comment
There was a problem hiding this comment.
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.
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.
just a thought: In this case using pandas could help
There was a problem hiding this comment.
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.
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.
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.
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.
There's always another, better version of everything...
SimoneMartino98
left a comment
There was a problem hiding this comment.
everything ok for me now; good job 👍
|
|
||
|
|
||
| @numba.jit # type: ignore[misc] | ||
| @numba.jit # type: ignore[untyped-decorator] |
There was a problem hiding this comment.
Yes. I'll make it consistent with the lens.py file.
Requested Reviewers: @andrewtarzia @SimoneMartino98