From 2bbfbfc3321561fdad7eea526974310ab7f43fcf Mon Sep 17 00:00:00 2001 From: Denis-Titov Date: Sat, 8 Jun 2024 14:28:21 -0700 Subject: [PATCH] fix more bugs --- src/data_driven_rate_equation_selection.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data_driven_rate_equation_selection.jl b/src/data_driven_rate_equation_selection.jl index f16dfb1..1e086a2 100644 --- a/src/data_driven_rate_equation_selection.jl +++ b/src/data_driven_rate_equation_selection.jl @@ -55,8 +55,10 @@ function data_driven_rate_equation_selection( end #calculate starting_param_removal_codes num_param_range[1] parameters + all_param_removal_codes = calculate_all_parameter_removal_codes(param_names) starting_param_removal_codes = calculate_all_parameter_removal_codes_w_num_params( num_param_range[1], + all_param_removal_codes, param_names, num_alpha_params, ) @@ -254,10 +256,10 @@ end """Generate codes for ways that params can be removed from the rate equation but still leave `num_params`""" function calculate_all_parameter_removal_codes_w_num_params( num_params, + all_param_removal_codes, param_names, num_alpha_params, ) - all_param_removal_codes = calculate_all_parameter_removal_codes(param_names) codes_with_num_params = Tuple[] num_non_zero_in_each_code = Int[] for code in all_param_removal_codes