1feae7ff85349b6cb207ce9fb2a5ad7f3aab5a27
- Introduced OpexValidationError for handling validation errors in processing opex calculations. - Implemented ProjectProcessingOpexRepository and ScenarioProcessingOpexRepository for managing project and scenario-level processing opex snapshots. - Enhanced UnitOfWork to include repositories for processing opex. - Updated sidebar navigation and scenario detail templates to include links to the new Processing Opex Planner. - Created a new template for the Processing Opex Planner with form handling for input components and parameters. - Developed integration tests for processing opex calculations, covering HTML and JSON flows, including validation for currency mismatches and unsupported frequencies. - Added unit tests for the calculation logic, ensuring correct handling of various scenarios and edge cases.
CalMiner
A web application to plan mining projects and estimate costs, returns and profitability.
Focuses on ore mining operations and covering parameters such as capital and operational expenditures, resource consumption, production output, and Monte Carlo simulations for risk analysis.
The system is designed to help mining companies make informed decisions by simulating various scenarios and analyzing potential outcomes based on stochastic variables.
Documentation & quickstart
- Detailed developer, architecture, and operations guides live in the companion calminer-docs repository.
- For a local run, create a
.env(see.env.example), install requirements, then executepython -m scripts.init_dbfollowed byuvicorn main:app --reload. The initializer is safe to rerun and seeds demo data automatically. - To wipe and recreate the schema in development, run
CALMINER_ENV=development python -m scripts.reset_dbbefore invoking the initializer again.
Description
Languages
Python
80.5%
HTML
11.8%
CSS
4%
JavaScript
3.3%
Dockerfile
0.4%