-
Notifications
You must be signed in to change notification settings - Fork 1
Add real simulation case #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated the Dockerfile and dependencies to use Python 3.10, as required by the open-darts 1.1.3 wheel. Adjusted type annotations and enums for compatibility with Python 3.10 syntax. Included the open-darts wheel in the infrastructure and updated pre-commit configuration for large file checks.
Replaced direct access to centroids_all_cells with a new utility function `_calculate_centroids`. Updated `_CellConnector` and related methods to align with this change, ensuring centroids are dynamically computed from discretization parameters. This improves maintainability and flexibility.
Standardized indentation for method parameters and reformatted complex array operations for better readability. Made minor structural adjustments to improve code clarity without altering functionality.
Removed redundant test files, streamlined Docker configurations, and improved gRPC channel/server options for handling larger message sizes. Additionally, minor adjustments were made to logging and simulation service utilities to ensure smoother execution and manage resource constraints more effectively.
…ENT_RiskManagementToolbox into add_real_simulation_case
Added .whl to .gitattributes to treat wheel files as binary and prevent potential file corruption. Updated the open_darts-1.1.3 wheel file in the worker module.
The Docker image initialization code was fully removed from the service as it is no longer in use. Additionally, the timeout handling in the `open_darts.py` connector was updated to return a consistent placeholder value (`-1e3`) instead of `inf` for simulation results.
# Conflicts: # src/interfaces/cli.py # src/services/simulation_service/core/service/__init__.py
Introduced `OptimizationStrategy` to support new optimization modes. Updated relevant files to include the new model in imports. Simplified test case setup by removing redundant mock discretizer definitions.
| dx | ||
| dy | ||
| dz | ||
| start_z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To proprely format this docstring we can implement:
- dx
- dy
- dz
- start_z
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same thing goes for all other docstrings in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain what do you mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for newlines between each element? When you view this class you see dx dy dz - no newline between those values as probably intended
| RUN pip install --no-cache-dir uv &&\ | ||
| uv pip install --no-cache-dir -r worker_requirements.txt --target /install | ||
|
|
||
| FROM python:3.10.12-slim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already defined in line 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also I do not get you point, could you explain?
|
Could you also add to .gitignore an entry to ignore .csv files? Or at least ignore whole log folder? |
Prepare the codebase to handle real simulation case.
TODO will be handle in next iterations.