Model.morphbiasupdateretroactive#

Model.morphbiasupdateretroactive(hcollection, bias, con)#

Applies updated biases retroactively to existing perturbations.

Parameters:
  • hcollection (Collection) – The collection containing the hanlde entities to update their biases.

  • bias (double) – New bias value desired.

  • con (int) –

    0 - Do not use constraints

    1 - Use constraints

Example#

Recalculate and reapplye all morphs selected interactively in terms of the updated bias factors .#
import hm
import hm.entities as ent

model = hm.Model()

model.morphbiasupdateretroactive(
    hcollection=hm.CollectionByInteractiveSelection(model, ent.Handle), bias=2.0, con=1
)