Repository navigation
Conversation
> mol_ids.extend([i + 1] * len(topo)) E TypeError: object of type 'Topology' has no len() pymatgen/io/lammps/data.py:786: TypeError
lbluque
pushed a commit
to lbluque/pymatgen
that referenced
this pull request
May 23, 2023
* simplify: structure.sites -> structure * ruff unignore SIM115, fix pymatgen/io/qchem/tests/test_inputs.py * ruff unignore RET501 and fix unnecessary return none * ruff unignore and fix PLW3301 * ruff unignore PLW0603 and fix use of globals * improve TestCRESTOutput readability * ruff unignore PD002 (pandas don't use inplace) * fix LammpsDataTest.test_from_structure() > mol_ids.extend([i + 1] * len(topo)) E TypeError: object of type 'Topology' has no len() pymatgen/io/lammps/data.py:786: TypeError
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.
742f461 simplify:
structure.sites->structure9eb253c
ruffunignoreSIM115, fixpymatgen/io/qchem/tests/test_inputs.py04e4fd6
ruffunignoreRET501and fix unnecessaryreturn None46ed471
ruffunignore and fixPLW33016e74192
ruffunignorePLW0603and fix use ofglobals24f812e improve
TestCRESTOutputreadabilitybc93f61
ruffunignorePD002(pandas don't use inplace)