Skip to content

Commit

Permalink
Changed for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
vcalderon2009 committed Feb 23, 2018
1 parent a05e8a9 commit 3c02f0a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/data/mocks_create/eco_mocks_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,9 @@ def resolve_a_geometry_mocks(clf_pd, param_dict, proj_dict):
z_init_1 += z_delta_1
## Looping over positions
ncatls = 0
for aa in range(len(x_pos_1_arr)):
for bb in range(len(y_pos_1_arr)):
for cc in range(len(z_pos_1_arr)):
for aa in x_pos_1_arr:
for bb in y_pos_1_arr:
for cc in z_pos_1_arr:
## Appending positions
pos_coords_mocks.append([aa, bb, cc,
clf_1_pd.copy(), coord_1_dict])
Expand Down Expand Up @@ -1407,9 +1407,9 @@ def resolve_a_geometry_mocks(clf_pd, param_dict, proj_dict):
z_pos_2_arr.append(z_init_2)
z_init_2 += z_delta_2
## Looping over positions
for aa in range(len(x_pos_2_arr)):
for bb in range(len(y_pos_2_arr)):
for cc in range(len(z_pos_2_arr)):
for aa in x_pos_2_arr:
for bb in y_pos_2_arr:
for cc in z_pos_2_arr:
## Appending positions
pos_coords_mocks.append([aa, bb, cc,
clf_2_pd, coord_2_dict])
Expand Down Expand Up @@ -1444,9 +1444,9 @@ def resolve_a_geometry_mocks(clf_pd, param_dict, proj_dict):
z_pos_3_arr.append(180. - z_init_3)
z_init_3 += z_delta_3
## Looping over positions
for aa in range(len(x_pos_3_arr)):
for bb in range(len(y_pos_3_arr)):
for cc in range(len(z_pos_3_arr)):
for aa in x_pos_3_arr:
for bb in y_pos_3_arr:
for cc in z_pos_3_arr:
## Appending positions
pos_coords_mocks.append([aa, bb, cc,
clf_3_pd, coord_3_dict])
Expand Down

0 comments on commit 3c02f0a

Please sign in to comment.