Output
Utilities for handling spatial and structured simulation output.
SpatialOutput
1 | |
Helper class for reading and processing spatially-structured output files produced by simulations (e.g. spatial binary files from EMOD such as SpatialReport_*.bin).
Class methods
from_file(filename) (classmethod)
Load a spatial binary output file.
1 | |
| Parameter | Type | Description |
|---|---|---|
filename |
str |
Path to the spatial binary output file |
Returns a SpatialOutput instance.
Instance methods
to_dataframe()
Convert the spatial output to a pandas.DataFrame indexed by node and time.
1 2 | |
Usage example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |