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

'NoneType' object has no attribute 'sigma' in rmgpy.reaction.Reaction.get_mean_sigma_and_epsilon #46

Closed
mazeau opened this issue Oct 21, 2018 · 2 comments

Comments

@mazeau
Copy link

mazeau commented Oct 21, 2018

Not sure why this might be, and I have absolutely no idea why changing the thermos would mess this up, so it might have nothing to do with that?

/Users/emilymazeau/Code/RMG-Py/rmgpy/rmg/main.py:984: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
  p_min=self.Pmin, p_max=self.Pmax)
Traceback (most recent call last):
  File "/Users/emilymazeau/Code/RMG-Py/rmg.py", line 173, in <module>
    main()
  File "/Users/emilymazeau/Code/RMG-Py/rmg.py", line 167, in main
    rmg.execute(**kwargs)
  File "/Users/emilymazeau/Code/RMG-Py/rmgpy/rmg/main.py", line 940, in execute
    self.check_model()
  File "/Users/emilymazeau/Code/RMG-Py/rmgpy/rmg/main.py", line 984, in check_model
    p_min=self.Pmin, p_max=self.Pmax)
  File "rmgpy/reaction.py", line 1249, in rmgpy.reaction.Reaction.check_collision_limit_violation
  File "rmgpy/reaction.py", line 1271, in rmgpy.reaction.Reaction.check_collision_limit_violation
  File "rmgpy/reaction.py", line 1297, in rmgpy.reaction.Reaction.calculate_coll_limit
  File "rmgpy/reaction.py", line 1297, in rmgpy.reaction.Reaction.calculate_coll_limit
  File "rmgpy/reaction.py", line 1303, in rmgpy.reaction.Reaction.calculate_coll_limit
  File "rmgpy/reaction.py", line 1323, in rmgpy.reaction.Reaction.get_mean_sigma_and_epsilon
  File "rmgpy/reaction.py", line 1323, in rmgpy.reaction.Reaction.get_mean_sigma_and_epsilon
  File "rmgpy/reaction.py", line 1340, in rmgpy.reaction.Reaction.get_mean_sigma_and_epsilon
AttributeError: 'NoneType' object has no attribute 'sigma'
@rwest
Copy link
Collaborator

rwest commented Oct 21, 2018

I guess it is related to the master merge not the new Thermo. Probably they put in a new check that things do not exceed the collision limit (reactions shouldn't be faster than molecules can meet each other) and that requires the Lennard Jones transport properties such as sigma. We probably don't have these for adsorbates, so it's a NoneType.

We could skip the collision limit check for surface reactions. Or make it ensure sticking coefficient doesn't exceed one, or something, instead.

Would have to check through the stack trace to see where best to put this.

@rwest rwest changed the title Attribute error using new thermo 'NoneType' object has no attribute 'sigma' in rmgpy.reaction.Reaction.get_mean_sigma_and_epsilon Oct 22, 2018
rwest added a commit to comocheng/cpox-methane that referenced this issue Oct 29, 2018
RMG crashes at the end, but only when it's performing final checks on
the model, so this should be complete. Bug is at
cfgoldsmith/RMG-Py#46
rwest added a commit to rwest/RMG-Py that referenced this issue Dec 4, 2018
@rwest
Copy link
Collaborator

rwest commented Dec 5, 2018

Closed by f6f51c2

@rwest rwest closed this as completed Dec 5, 2018
rwest added a commit to rwest/RMG-Py that referenced this issue Jan 18, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 20, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 20, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 21, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 21, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 25, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 25, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 27, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 28, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Jan 31, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Feb 1, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Feb 6, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Feb 6, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Mar 12, 2019
rwest added a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Mar 31, 2019
rwest added a commit to rwest/RMG-Py that referenced this issue Apr 22, 2019
mjohnson541 pushed a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Apr 25, 2019
alongd pushed a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Apr 25, 2019
mliu49 pushed a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Apr 25, 2019
mliu49 pushed a commit to ReactionMechanismGenerator/RMG-Py that referenced this issue Apr 25, 2019
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