ergminer.write
ergminer.write_ergml(erg, file_path, sim_time=5000.0)
Serialise erg to an ERGML XML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
file_path
|
str
|
Destination file path (conventionally ending in |
required |
sim_time
|
float
|
Simulation horizon to embed in the ERGML (seconds). |
5000.0
|
Source code in src\ergminer\write.py
ergminer.write_erg_json(erg, file_path)
Serialise erg to a JSON file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
file_path
|
str
|
Destination file path (conventionally ending in |
required |
Source code in src\ergminer\write.py
ergminer.write_dot(erg, file_path)
Serialise erg to a GraphViz DOT file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
file_path
|
str
|
Destination file path (conventionally ending in |
required |