Skip to content
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

Fixes #581 batch run crash #590

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Fixes #581 batch run crash #590

merged 1 commit into from
Aug 26, 2021

Conversation

msevestre
Copy link
Member

No description provided.

@@ -24,7 +24,7 @@ DataSet <- R6::R6Class(
private$.dataRepository$name <- value
},

#' @field name The underlying DataRepository object
#' @field dataRepository The underlying DataRepository object
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PavelBal Copy paste issue here

@@ -70,6 +70,8 @@ SimulationBatch <- R6::R6Class(
#' Clears the reference to the wrapped .NET object
finalize = function() {
private$.simulation <- NULL
# SimulationBatch are disposable object and should be disposed
rClr::clrCall(self$ref, "Dispose")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling dispose on finalize

@@ -311,7 +311,7 @@ runSimulationBatches <- function(simulationBatches, simulationRunOptions = NULL,
# All results of this batch have the id of the same simulation
resultsIdSimulationIdMap[valuesIds] <- simBatchId
# Add the batch to concurrent runner
rClr::clrCall(simulationRunner, "AddSimulationBatchOption", simBatch$ref)
rClr::clrCall(simulationRunner, "AddSimulationBatch", simBatch$ref)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating the nomenclature

@codecov-commenter
Copy link

Codecov Report

Merging #590 (fb533d4) into develop (e91deaa) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #590   +/-   ##
========================================
  Coverage    89.78%   89.79%           
========================================
  Files           74       74           
  Lines         1674     1675    +1     
========================================
+ Hits          1503     1504    +1     
  Misses         171      171           
Impacted Files Coverage Δ
R/data-set.R 95.16% <ø> (ø)
R/simulation-batch.R 88.88% <100.00%> (+0.65%) ⬆️
R/utilities-simulation.R 97.88% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e91deaa...fb533d4. Read the comment docs.

@PavelBal PavelBal merged commit a3eb187 into develop Aug 26, 2021
@PavelBal PavelBal deleted the 581-batch-run-crash branch August 26, 2021 09:07
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