-
Notifications
You must be signed in to change notification settings - Fork 38
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
WIP: multipucker #1611
base: master
Are you sure you want to change the base?
WIP: multipucker #1611
Conversation
@hainm I had some time so I started implementation of multipucker on the multipucker branch this on this fork. Before starting a pull request, I was curious about what to do with the |
Please see |
Traditionally we reuse the cpptraj's command in its testing folder to make sure to reproduce exact values
Please let me know if you have other questions. Cheers. |
@PhiMykah Please see cpptraj's command for multipucker here: https://github.com/Amber-MD/cpptraj/blob/master/test/Test_MultiPucker/RunTest.sh (and find many tests for many others here: https://github.com/Amber-MD/cpptraj/tree/master/test) |
@hainm Hello! I am doing some multipucker testing, and currently I am having issues with running pyranoid puckertypes. I ran /.../source/pytraj/pytraj/all_actions.py:3207: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 mode='r' encoding='utf-8'> c_dslist, _ = do_action(traj, command, c_action.Action_MultiPucker) ResourceWarning: Enable tracemalloc to get the object allocation traceback /.../source/pytraj/pytraj/all_actions.py:3207: ResourceWarning: unclosed file <_io.TextIOWrapper name=5 mode='r' encoding='utf-8'> c_dslist, _ = do_action(traj, command, c_action.Action_MultiPucker) ResourceWarning: Enable tracemalloc to get the object allocation traceback ..E ====================================================================== ERROR: test_multipucker_pyranoid (__main__.TestMultipucker.test_multipucker_pyranoid) ---------------------------------------------------------------------- Traceback (most recent call last): File "/.../source/pytraj/tests/test_analysis/test_multipucker.py", line 60, in test_multipucker_pyranoid data_pyranoid = pt.multipucker(traj=traj, name='Pyranoid', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/.../source/pytraj/pytraj/utils/get_common_objects.py", line 314, in inner return f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/.../source/pytraj/pytraj/all_actions.py", line 3207, in multipucker c_dslist, _ = do_action(traj, command, c_action.Action_MultiPucker) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/.../source/pytraj/pytraj/analysis/c_action/__init__.py", line 25, in do_action act = action_class(command=command, top=top, dslist=c_dslist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pytraj/analysis/c_action/c_action.pyx", line 84, in pytraj.analysis.c_action.c_action.Action.__init__ File "/.../source/pytraj/pytraj/utils/decorators.py", line 59, in _inner return func(self, *args, **kwd) ^^^^^^^^^^^^^^^^^^^^^^^^ File "pytraj/analysis/c_action/c_action.pyx", line 180, in pytraj.analysis.c_action.c_action.Action.setup RuntimeError: Failed to setup action. Use pytraj._verbose() to turn on the error report. ---------------------------------------------------------------------- Ran 3 tests in 0.012s FAILED (errors=1) I also have the pytraj verbose log. I am positive that it is likely the result of a syntactical issue, but I am unsure where to look for it, and what in particular is causing the setup action to fail. Any ideas? Thanks in advance for your help! |
@PhiMykah I am testing your branch now... |
@PhiMykah I found the issue. It's because of this
In your code, '05' is zero and five. It should be "O" (as in Oxygen) and "5" ( |
I see it now, Thank you! I had a feeling it was something with syntax 😅 |
No description provided.