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

Mapped ase md and Flatten node #299

Merged
merged 28 commits into from
Jun 26, 2024
Merged

Mapped ase md and Flatten node #299

merged 28 commits into from
Jun 26, 2024

Conversation

Tetracarbonylnickel
Copy link
Contributor

No description provided.

@Tetracarbonylnickel
Copy link
Contributor Author

So far the implementation is ready and tested. Will get an overhaul as soon as it is possible to safe more than one trajectory in h5 in a structured way.

Copy link
Member

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

I think this will be a great addition but I have some comments.
Something I'm undecided is the split into data_id and data_ids parameters.
We could easily unify them into data_ids: list[int] and if run we mandate that len(data_ids) == 1 ? But on the other hand, using different names makes it more clear what is goind on.

ipsuite/base/base.py Outdated Show resolved Hide resolved
ipsuite/calculators/ase_md.py Outdated Show resolved Hide resolved
ipsuite/calculators/ase_md.py Show resolved Hide resolved
Comment on lines 532 to 533
# File can not be opened with DVCFileSystem, try normal open
atoms = list(ase.io.iread(self.data_file))
Copy link
Member

Choose a reason for hiding this comment

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

This is dangerous, where is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a good point. Actually I modified the ProcessAtoms base class which also uses that line, and have to admit that I don't know if it is needed. Maybe we can talk about the atoms and file handling so I can adjust this in the base class too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be address this in a separate PR?

ipsuite/calculators/ase_md.py Outdated Show resolved Hide resolved
ipsuite/calculators/ase_md.py Outdated Show resolved Hide resolved
@Tetracarbonylnickel
Copy link
Contributor Author

Also solves issue #301

Copy link
Member

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

Great addition, LGTM 👍

ipsuite/calculators/ase_md.py Outdated Show resolved Hide resolved
@Tetracarbonylnickel Tetracarbonylnickel merged commit 0592e8e into main Jun 26, 2024
5 checks passed
@Tetracarbonylnickel Tetracarbonylnickel deleted the mapped-ase-md branch July 1, 2024 14:53
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.

2 participants