Skip to content

Commit

Permalink
Removed debugging bits
Browse files Browse the repository at this point in the history
  • Loading branch information
zorge69 committed Jan 31, 2024
1 parent 1dcf987 commit 772f13e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/site_apportionment/site_apportionment.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,21 +381,6 @@ def run_apportion_sites(
df_cart = weight_values(df_cart, value_cols, "site_weight")

# Restore the original order of columns
#debug begin
cart_cols = list(df_cart.columns)
OL = len(orig_cols)
CL = len(cart_cols)
if CL == OL:
print(f"Lenghts are the same, {OL}")
same_titles = [orig_cols[x]==cart_cols[x] for x in range(OL)]
if min(same_titles) == 1:
print("column names are the same")
else:
print(f"Different column names, [{same_titles}]")
else:
print(f"Lengths are different, orig={OL}, cart={CL}")
# debug end

df_cart = df_cart[orig_cols]

# Append the apportionned data back to the remaining unchanged data
Expand Down

0 comments on commit 772f13e

Please sign in to comment.