{"comment":{"url":"https://api.github.com/repos/ReactionMechanismGenerator/RMG-Py/comments/15292402","html_url":"https://github.com/ReactionMechanismGenerator/RMG-Py/commit/670e781c961166271c9ea7e605de45cb8bf8d383#commitcomment-15292402","id":15292402,"user":{"login":"nickvandewiele","id":242147,"avatar_url":"https://avatars.githubusercontent.com/u/242147?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvandewiele","html_url":"https://github.com/nickvandewiele","followers_url":"https://api.github.com/users/nickvandewiele/followers","following_url":"https://api.github.com/users/nickvandewiele/following{/other_user}","gists_url":"https://api.github.com/users/nickvandewiele/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvandewiele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvandewiele/subscriptions","organizations_url":"https://api.github.com/users/nickvandewiele/orgs","repos_url":"https://api.github.com/users/nickvandewiele/repos","events_url":"https://api.github.com/users/nickvandewiele/events{/privacy}","received_events_url":"https://api.github.com/users/nickvandewiele/received_events","type":"User","site_admin":false},"position":76,"line":495,"path":"rmgpy/rmg/model.py","commit_id":"670e781c961166271c9ea7e605de45cb8bf8d383","created_at":"2016-01-06T15:13:17Z","updated_at":"2016-01-06T15:13:17Z","body":"This is where I messed up. The reaction dict now only contains strings as keys, hence, `library` is a string.\r\nAs a consequence,\r\n`isinstance(library, KineticsLibrary)` will always return `False` regardless of whether it was really a library.\r\n\r\nI am looking for ways to figure out if a string is either a `KineticsFamily` or a `KineticsLibrary`."}}