The property _beamletComputationConfig(self) and _scenarioComputationConfig(self) in core/processing/doseCalculation/mcsquareDoseCalculator.py has a part that is hard coded for the number of scenarios. This needs to be changed so that the number of scenarios is computed correctly. For instance, if I set the range error to 0, and the systematic error to 5 (see variables below) I still have 21 scenarios while actually MCsquare will compute only 7. This gives an error when reading the files of the scenarios since it is looking for the file “Sparse_Dose_Scenario_1-21.bin” while actually the file is called “Sparse_Dose_Scenario_1-7.bin”