Skip to content

Conversation

@dJaniga
Copy link
Collaborator

@dJaniga dJaniga commented May 10, 2025

Prepare the codebase to handle real simulation case.
TODO will be handle in next iterations.

dJaniga added 9 commits May 4, 2025 21:08
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
@dJaniga dJaniga requested a review from Hevagog May 10, 2025 17:34
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.
Comment on lines 45 to 48
dx
dy
dz
start_z
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator Author

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?

Copy link
Collaborator

@Hevagog Hevagog May 11, 2025

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
Copy link
Collaborator

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

Copy link
Collaborator Author

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?

@Hevagog
Copy link
Collaborator

Hevagog commented May 11, 2025

Could you also add to .gitignore an entry to ignore .csv files? Or at least ignore whole log folder?

@Hevagog Hevagog self-requested a review May 13, 2025 15:07
@Hevagog Hevagog merged commit 8e5d2e3 into main May 13, 2025
1 check passed
@Hevagog Hevagog deleted the add_real_simulation_case branch May 13, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants