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

InterMol does not recognize coeff keywords in the lammps input files #355

Open
JoshuaSBrown opened this issue Feb 5, 2019 · 2 comments
Open

Comments

@JoshuaSBrown
Copy link
Contributor

Problem arises when the coefficients are defined in the input file as opposed to the data file, Intermol fails to initialize the variables which results in:

Traceback (most recent call last):
File "../Documents/Intermol_Fork/InterMol/intermol/convert.py", line 811, in
main()
File "../Documents/Intermol_Fork/InterMol/intermol/convert.py", line 229, in main
system, prefix = _load_lammps(lammps_in=lammps_in)
File "../Documents/Intermol_Fork/InterMol/intermol/convert.py", line 605, in _load_lammps
system = lmp.load(in_file=lammps_in)
File "/home/jbrown/Documents/InterMol/intermol/lammps/lammps_parser.py", line 34, in load
return parser.read()
File "/home/jbrown/Documents/InterMol/intermol/lammps/lammps_parser.py", line 315, in read
self.read_data(self.data_file)
File "/home/jbrown/Documents/InterMol/intermol/lammps/lammps_parser.py", line 434, in read_data
parsable_keywordskeyword
File "/home/jbrown/Documents/InterMol/intermol/lammps/lammps_parser.py", line 749, in parse_atoms
self.nb_types[int(fields[self.type_idx])][1], # sigma
AttributeError: 'LammpsParser' object has no attribute 'nb_types'

@JoshuaSBrown
Copy link
Contributor Author

I will see if I can fix this.

@vitfant
Copy link

vitfant commented May 15, 2023

Hi! is there any update on the matter? thank you

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