I/O¶
Serialization and deserialization of study results.
trade_study.load_results(path)
¶
Load a ResultsTable from disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Directory previously written by |
required |
Returns:
| Type | Description |
|---|---|
ResultsTable
|
Reconstructed ResultsTable. |
Source code in src/trade_study/io.py
trade_study.save_results(results, path)
¶
Save a ResultsTable to disk.
Uses .npz for score arrays and .json for configs/metadata.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
ResultsTable
|
The ResultsTable to save. |
required |
path
|
str | Path
|
Directory to write into (created if needed). |
required |