evo.blockmodels.typed.report.ReportColumnSpec
Specification for a column in a report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
column_name
|
str
|
The name of the column in the block model. |
required |
aggregation
|
Aggregation
|
How to aggregate the column values. Use |
SUM
|
label
|
str | None
|
Display label for the column in the report. |
None
|
output_unit_id
|
str | None
|
Unit ID for the output values. Use Example: >>> from evo.blockmodels import Units >>> from evo.blockmodels.typed import Aggregation, ReportColumnSpec >>> >>> # For grade columns, use MASS_AVERAGE >>> grade_col = ReportColumnSpec( ... column_name="Au", ... aggregation=Aggregation.MASS_AVERAGE, ... label="Au Grade", ... output_unit_id=Units.GRAMS_PER_TONNE, ... ) >>> # For metal content columns, use SUM >>> metal_col = ReportColumnSpec( ... column_name="Au_metal", ... aggregation=Aggregation.SUM, ... label="Au Metal", ... output_unit_id=Units.KILOGRAMS, ... ) |
None
|