private Task updateModelRange(ParameterRange parameterRange, string parameterName, RandomPopulationSettings randomPopulationSettings, SnapshotContext snapshotContext, bool isDiseaseStateParameter = false) { var modelParameterRange = randomPopulationSettings.ParameterRange(parameterName); if (modelParameterRange == null && isDiseaseStateParameter) { _logger.AddWarning(PKSimConstants.Warning.ParameterRangeNotFoundInPopulation(parameterName)); return(Task.CompletedTask); } return(_parameterRangeMapper.MapToModel(parameterRange, new ParameterRangeSnapshotContext(modelParameterRange, snapshotContext))); }
private Task updateModelRange(RandomPopulationSettings randomPopulationSettings, string parameterName, ParameterRange parameterRange) { return(_parameterRangeMapper.MapToModel(parameterRange, randomPopulationSettings.ParameterRange(parameterName))); }