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

TYPE_ERROR #135

Open
Alvarobrt98 opened this issue Feb 19, 2021 · 2 comments
Open

TYPE_ERROR #135

Alvarobrt98 opened this issue Feb 19, 2021 · 2 comments

Comments

@Alvarobrt98
Copy link

Alvarobrt98 commented Feb 19, 2021

When i run the model, i recieve this error:
Traceback (most recent call last):
File "mkm_job.py", line 3, in
model = ReactionModel(setup_file=mkm_file)
File "/home/alvaro/catmap/catmap/model.py", line 124, in init
self.load(self.setup_file)
File "/home/alvaro/catmap/catmap/model.py", line 422, in load
self.parse() #Automatically parse in data.
File "/home/alvaro/catmap/catmap/model.py", line 455, in parse
self.parser.parse(*args, **kwargs)
File "/home/alvaro/catmap/catmap/parsers/table_parser.py", line 60, in parse
self._baseparse()
File "/home/alvaro/catmap/catmap/parsers/parser_base.py", line 41, in _baseparse
self.transition_state_names+self.site_names+tuple(self._gas_sites)):
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
Is it a problem with the input file?

@siqiwang55
Copy link

I had the same problem when I tried generating the input file (energies.txt) myself. However if I use the tutorial codes where they generate the input automatically, there is no problem anymore.

@755452800
Copy link

If you copy the data from the tutorial and paste it to the energies.txt, you got this problem. The reason is that the copied format is wrong. The space between two items is not strictly a tap (or \t) length. By substitute the blanks to a tab (\t), all fixed.

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

3 participants