Skip to main content

ReportSpecificationData

GitHub source

ReportSpecificationData

evo.blockmodels.typed.report.ReportSpecificationData

Data for creating a report specification.

A report specification defines how to calculate resource estimates from a block model. It includes which columns to report on, how to categorize blocks, and density/mass settings.

Parameters:

NameTypeDescriptionDefault
namestrThe name of the report.required
columnslist[ReportColumnSpec]List of columns to include in the report with their aggregation settings. Use ReportColumnSpec to define each column.required
mass_unit_idstrUnit ID for mass output. Common values: - "t" (tonnes) - use MassUnits.TONNES - "kg" (kilograms) - use MassUnits.KILOGRAMS - "oz" (ounces) - use MassUnits.OUNCESrequired
categorieslist[ReportCategorySpec]List of category columns for grouping blocks. Use ReportCategorySpec to define each category.list()
descriptionstr | NoneOptional description of the report.None
density_valuefloat | NoneFixed density value (requires density_unit_id). Do NOT use with density_column_name.None
density_unit_idstr | NoneUnit ID for fixed density (e.g., "t/m3"). Only use with density_value, NOT with density_column_name.None
density_column_namestr | NoneName of the column containing block densities. Do NOT use with density_value or density_unit_id.None
cutoff_column_namestr | NoneName of the column to use for cut-off evaluation.None
cutoff_valueslist[float] | NoneList of cut-off values to evaluate.None
autorunboolWhether to automatically run the report when block model is updated.True
run_nowboolWhether to run the report immediately after creation.

Example with density column::

<br/>>>> data = ReportSpecificationData(<br/>... name="Gold Resource Report",<br/>... columns=[<br/>... ReportColumnSpec(<br/>... column_name="Au",<br/>... aggregation="MASS_AVERAGE", # Use for grades<br/>... label="Au Grade",<br/>... output_unit_id="g/t",<br/>... ),<br/>... ],<br/>... categories=[<br/>... ReportCategorySpec(column_name="domain", label="Domain"),<br/>... ],<br/>... mass_unit_id=MassUnits.TONNES,<br/>... density_column_name="density", # Unit comes from column<br/>... )<br/>

Example with fixed density::

<br/>>>> data = ReportSpecificationData(<br/>... name="Gold Resource Report",<br/>... columns=[...],<br/>... categories=[...],<br/>... mass_unit_id=MassUnits.TONNES,<br/>... density_value=2.7, # Fixed density<br/>... density_unit_id="t/m3", # Required with density_value<br/>... )<br/>
True

Was this page helpful?