Trajectory Traces¶
- class TraceManager(TraceType=<class 'mudslide.tracer.InMemoryTrace'>, trace_args=[], trace_kwargs={})¶
Bases:
object
Manage the collection of observables from a set of trajectories
- add_batch(traces: List[Trace_]) None ¶
merge other manager into self
- as_dict() Dict ¶
- counts() Type[ndarray] ¶
- event_list() List ¶
- merge_tracer(tracer: Trace_) None ¶
accepts a Tracer object and adds it to list of traces
- outcome() Type[ndarray] ¶
- spawn_tracer() Trace_ ¶
returns a Tracer object that will collect all of the observables for a given trajectory
- summarize(verbose: bool = False, file: ~typing.Any = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>) None ¶
- class InMemoryTrace(weight: float = 1.0)¶
Bases:
Trace_
Collect results from a single trajectory
- as_dict() Dict ¶
- collect(trajectory_snapshot: Any) None ¶
collect and optionally process data
- hop(time: float, hop_from: int, hop_to: int, zeta: float, prob: float) None ¶
- record_event(event_type: str, event: Dict)¶
add a single event (e.g., hop or collapse) to the log
- class YAMLTrace(base_name: str = 'traj', weight: float = 1.0, log_pitch=512, location='', load_main_log=None)¶
Bases:
Trace_
Collect results from a single trajectory and write to yaml files
- as_dict() Dict ¶
- clone()¶
- collect(trajectory_snapshot: Any) None ¶
collect and optionally process data
- files(absolute_path=True)¶
- hop(time: float, hop_from: int, hop_to: int, zeta: float, prob: float) None ¶
- record_event(event_dict)¶
add a single event (e.g., hop or collapse) to the log
- write_main_log()¶
Writes main log file, which points to other files for logging information