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

How to implement trjcat? #268

Open
sperezconesa opened this issue Mar 14, 2021 · 3 comments
Open

How to implement trjcat? #268

sperezconesa opened this issue Mar 14, 2021 · 3 comments

Comments

@sperezconesa
Copy link

Hello,

Suppose I want to feed to files to trjcat. I tried this but didn't work:

import gmxapi as gmx

a = gmx.commandline_operation(
    "gmx",
    arguments=["trjcat", "-nooverwrite"],
    input_files={"-f": ["s0/traj_comp.xtc", "s1/traj_comp.xtc"]},
    output_files={"-o": "cat.xtc"},
)
a.run()
print(a.output.erroroutput.result())

Is there a good solution?
Thank you very much!
Best,
Sergio

@sperezconesa sperezconesa changed the title How to implement How to implement trjcat? Mar 14, 2021
@sperezconesa
Copy link
Author

Nevermind, this works the problem was -nooverwrite should be -cat. My input files have the same time stamps and that's why it looked as if only one file was processed!

@sperezconesa
Copy link
Author

In any case, the possibility of giving lists should be documented, which maybe it is. Just leaving this here as a reminder.

@eirrgang
Copy link
Collaborator

eirrgang commented Mar 18, 2021

Yes. Very good point.

Related issues include

There were some proposed documentation updates that don't seem to have ever been merged or ported to the new issue tracking system, and I should revisit that. (issue 3136 dates from before the migration from Gerrit and Redmine to GitLab).

Of course, you are welcome to submit a merge request through https://gitlab.com/gromacs/gromacs/-/merge_requests with any notes that you have already identified as useful.

I will close this issue when I have re-posted the previously proposed documentation revision. If I can request your review of the proposed change, please let me know your GitLab ID and/or subscribe to https://gitlab.com/gromacs/gromacs/-/issues/3136

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

No branches or pull requests

2 participants