diff --git a/binarycpython/utils/grid.py b/binarycpython/utils/grid.py index b8553a339b87020c50463c25304e92bf8c215deb..293215d0431e193b7353d30f29531c329946e4f4 100644 --- a/binarycpython/utils/grid.py +++ b/binarycpython/utils/grid.py @@ -1918,6 +1918,7 @@ class Population: # + "\n" # ) + # TODO: make sure this works # Adding for loop structure code_string += ( indent * depth @@ -1927,6 +1928,27 @@ class Population: + "\n" ) + # code_string += ( + # indent * depth + # + "for {}_sample_number in range({}):".format( + # grid_variable["name"], grid_variable["resolution"] + # ) + # + "\n" + # ) + # code_string += ( + # indent * (depth+1) + # + "{} = sampled_values_{}[0] + ((sampled_values_{}[-1]-sampled_values_{}[0])/{}) * {}_sample_number".format( + # grid_variable["name"], grid_variable["name"], grid_variable["name"], grid_variable["name"], grid_variable["resolution"], grid_variable["name"] + # ) + # + "\n" + # ) + + + + + + + ################################################################################# # Check condition and generate for loop