06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Beamlets imported in 12.241759777069092 sec
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Beamlets loaded
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Matrix size: (7875000, 912)
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Non-zero values: 917531
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - data format: float32
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Memory usage: 0.006839539855718613 GB
06/12/2024 12:50:56 AM - opentps.core.io.mcsquareIO - INFO - Read sparse beamlets: C:\Users\User\openTPS_workspace\Simulations\MCsquare_simulation\Outputs\Sparse_Dose_Scenario_1-20.txt
Traceback (most recent call last):
File “C:\Users\User\Desktop\OPENTPS\opentps\opentps_gui\opentps\gui\panels\planOptimizationPanel\planOptiPanel.py”, line 82, in _computeBeamlets
nominal, scenarios = doseCalculator.computeRobustScenarioBeamlets(self._doseComputationPanel.selectedCT,
File “C:\Users\User\Desktop\OPENTPS\opentps\opentps_core\opentps\core\processing\doseCalculation\mcsquareDoseCalculator.py”, line 510, in computeRobustScenarioBeamlets
scenario = self._importBeamlets()
File “C:\Users\User\Desktop\OPENTPS\opentps\opentps_core\opentps\core\processing\doseCalculation\mcsquareDoseCalculator.py”, line 680, in _importBeamlets
beamletDose = mcsquareIO.readBeamlets(self._sparseDoseFilePath, self._beamletRescaling(), self.scoringOrigin, self._roi)
File “C:\Users\User\Desktop\OPENTPS\opentps\opentps_core\opentps\core\io\mcsquareIO.py”, line 64, in readBeamlets
header = _read_sparse_header(file_path)
File “C:\Users\User\Desktop\OPENTPS\opentps\opentps_core\opentps\core\io\mcsquareIO.py”, line 104, in _read_sparse_header
with open(Header_file, ‘r’) as fid:
FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\User\openTPS_workspace\Simulations\MCsquare_simulation\Outputs\Sparse_Dose_Scenario_1-20.txt’
Hello,
Could you perhaps send the code you are using (or the parameters you input if you are using the GUI)
Regards,
Eliot for the OpenTPS team
Hello Eliot,
Thank you for your response. I am using the OpenTPS GUI for my work, and here are the steps I performed along with the parameters I set:
-
Patient Data:
- I loaded the CT data and defined the target region (ROI) for the dose calculation.
-
Plan Design:
- Spot Spacing: 5.0 mm
- Layer Spacing: 2.0 mm
- Target Margin: 5.0 mm
- Proximal Layers: 1
- Distal Layers: 1
- Beam Angle: 270° (for a single field).
-
Robustness Settings:
- Systematic Setup Error: 2.0 mm
- Random Setup Error: 0.0 mm
- Systematic Range Error: 1.6%.
- Scenario Selection: Reduced Set or All (I tried both).
-
Plan Optimization:
- Algorithm: Scipy-LBFGS (Recommended)
- Objective: Prescribed doses of 4-7 Gy for the target and lungs.
- Place Spots: Enabled
- Compute Beamlets: Enabled
-
Dose Computation:
- Scoring Spacing: 2.0 mm
- Crop Beamlets on ROI: Enabled
- Simulation Statistics: 5,000 protons (tried higher and lower values).
Issue:
When I try to compute beamlets, I get the following error message:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\User\openTPS_workspace\Simulations\MCsquare_simulation\Outputs\Sparse_Dose_Scenario_1-20.txt'
I checked the folder Outputs
, and I see files like Sparse_Dose_Scenario_1-21.txt
and others, but the specific file Sparse_Dose_Scenario_1-20.txt
is missing. I also tried creating an empty file with the same name, but it didn’t resolve the issue.
Could you please advise what might be causing this issue? Should I adjust my parameters or verify the simulation setup in some way?
Thank you in advance for your support!
Best regards,
[ Mukhamedyar A.A ]
Could you ensure me that you are using opentps 1.1.2 ?
Because the number of scenarios was wrongly calculated in previous versions. (i.e. there should not be a scenario 21 anymore)
Thank you for your response. Based on the pyproject.toml
file in my OpenTPS installation directory, the version I am using is 1.1.2.
Let me know if there are any additional steps or settings I should verify.
Best regards,
[ Mukhamedyar A.A ]
Hello,
I have sent you a private message for further discussions.
Regards,
Eliot