Skip to content

Bond orders and optimizer issues #296

Discussion options

You must be logged in to vote

Hi @benedictsaunders, welcome to stk!

bonder orders

I think the issue here is that in your mapping

    reaction_factory=stk.GenericReactionFactory(
        bond_orders={
            frozenset({newNHFG, stk.Aldehyde}): 2,
        },
    ),

Your set consists of newNHFG and stk.Aldehyde. The issue is that newNHFG is not a FunctionalGroup class, it is a FunctionalGroupFactory instance, but bond_oders expects the set to hold two FunctionalGroup classes. The SmartsFunctionalGroupFactory creates instances of GenericFunctionalGroup so if you do

    reaction_factory=stk.GenericReactionFactory(
        bond_orders={
            frozenset({stk.GenericFunctionalGroup, stk.Aldehyde}): 2,
        },
  …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@lukasturcani
Comment options

@lukasturcani
Comment options

@lukasturcani
Comment options

@lukasturcani
Comment options

@benedictsaunders
Comment options

Answer selected by benedictsaunders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants