narupatools.imd.interaction_source

Protocol for an interactions source.

Functions

wrap_interaction_source

Wrap a pythonic dictionary as an interaction.

narupatools.imd.interaction_source.wrap_interaction_source(dict: Mapping[str, narupa.imd.particle_interaction.ParticleInteraction], /)narupatools.imd.interaction_source.InteractionsSource

Wrap a pythonic dictionary as an interaction.

Parameters

dict – Generic mapping of string keys to interactions.

Classes

InteractionsSource(*args, **kwargs)

General protocol for an object which can provide interactions.