- Added monitoring metrics for project creation success and error handling in `ProjectRepository`. - Implemented similar monitoring for scenario creation in `ScenarioRepository`. - Refactored `run_monte_carlo` function in `simulation.py` to include timing and success/error metrics. - Introduced new CSS styles for headers, alerts, and navigation buttons in `main.css` and `projects.css`. - Created a new JavaScript file for navigation logic to handle chevron buttons. - Updated HTML templates to include new navigation buttons and improved styling for buttons. - Added tests for reporting service and routes to ensure proper functionality and access control. - Removed unused imports and optimized existing test files for better clarity and performance.
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
"""Database models and shared metadata for the CalMiner domain."""
|
|
|
|
from .financial_input import FinancialCategory, FinancialInput
|
|
from .metadata import (
|
|
COST_BUCKET_METADATA,
|
|
RESOURCE_METADATA,
|
|
STOCHASTIC_VARIABLE_METADATA,
|
|
CostBucket,
|
|
ResourceDescriptor,
|
|
ResourceType,
|
|
StochasticVariable,
|
|
StochasticVariableDescriptor,
|
|
)
|
|
from .performance_metric import PerformanceMetric
|
|
from .pricing_settings import (
|
|
PricingImpuritySettings,
|
|
PricingMetalSettings,
|
|
PricingSettings,
|
|
)
|
|
from .project import MiningOperationType, Project
|
|
from .scenario import Scenario, ScenarioStatus
|
|
from .simulation_parameter import DistributionType, SimulationParameter
|
|
from .user import Role, User, UserRole, password_context
|
|
|
|
__all__ = [
|
|
"FinancialCategory",
|
|
"FinancialInput",
|
|
"MiningOperationType",
|
|
"Project",
|
|
"PricingSettings",
|
|
"PricingMetalSettings",
|
|
"PricingImpuritySettings",
|
|
"Scenario",
|
|
"ScenarioStatus",
|
|
"DistributionType",
|
|
"SimulationParameter",
|
|
"ResourceType",
|
|
"CostBucket",
|
|
"StochasticVariable",
|
|
"RESOURCE_METADATA",
|
|
"COST_BUCKET_METADATA",
|
|
"STOCHASTIC_VARIABLE_METADATA",
|
|
"ResourceDescriptor",
|
|
"StochasticVariableDescriptor",
|
|
"User",
|
|
"Role",
|
|
"UserRole",
|
|
"password_context",
|
|
"PerformanceMetric",
|
|
]
|