from openff.toolkit.typing.engines.smirnoff.parameters import ChargeIncrementModelHandler
ff2 = ForceField('openff-2.0.0.offxml')
#print(ff2.registered_parameter_handlers)
ff2.deregister_parameter_handler('ToolkitAM1BCC')
#print(ff2.registered_parameter_handlers)
cimh = ChargeIncrementModelHandler(version=0.3, partial_charge_method='gasteiger')
ff2.register_parameter_handler(cimh)
print(ff2.registered_parameter_handlers) |