[WIP] Fix the issue in big system#2
Closed
Copilot wants to merge 1 commit into
Closed
Conversation
Owner
|
A ValueError in the big input system (120 atoms), but small system (20 atoms) works. ❯ python ORB_GSM.py
/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/pyGSM/coordinate_systems/topology.py:4: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import parse_version
/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/orb_models/utils.py:30: UserWarning: Setting global torch default dtype to torch.float32.
warnings.warn(f"Setting global torch default dtype to {torch_dtype}.")
#========================================================#
#| Building the LOT |#
#========================================================#
Assuming gradient states are [(1, 0)]
initializing LOT from geom
making folder scratch/000/0
#========================================================#
#| Building the PES |#
#========================================================#
#========================================================#
#| building bonds |#
#========================================================#
None
In build bonds
2025-10-14 11:01:03 | INFO | himatcal.recipes.gsm.SE_GSM:build_topology:95 - Adding bond (127, 129) to top1
#========================================================#
#| Building Primitive Internal Coordinates |#
#========================================================#
127
<class 'int'>
Traceback (most recent call last):
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/pyGSM/coordinate_systems/primitive_internals.py", line 1339, in get_hybrid_indices
new_hybrid_indices.remove(elem)
ValueError: list.remove(x): x not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/inbox/251014_10.Build_IM1/01.half_cover/ORB_GSM.py", line 43, in <module>
gsm.run()
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/himatcal/recipes/gsm/SE_GSM.py", line 178, in run
self.build_primitives()
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/himatcal/recipes/gsm/SE_GSM.py", line 101, in build_primitives
self.p1 = PrimitiveInternalCoordinates.from_options(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/pyGSM/coordinate_systems/internal_coordinates.py", line 112, in from_options
return cls(cls.default_options().set_values(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/pyGSM/coordinate_systems/primitive_internals.py", line 86, in __init__
self.get_hybrid_indices(xyz)
File "/media/suncc/data/TAT/02.Mat/12.2509LFP_EC/.venv/lib/python3.11/site-packages/pyGSM/coordinate_systems/primitive_internals.py", line 1343, in get_hybrid_indices
raise RuntimeError
RuntimeError@copilot please fix this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.