James McCool
commited on
Commit
·
c4b1445
1
Parent(s):
a1da977
Add additional debug statements in reassess_dupes function to log detailed calculations and type checks for salary adjustments, further enhancing troubleshooting capabilities.
Browse files
global_func/reassess_edge.py
CHANGED
|
@@ -46,6 +46,9 @@ def calculate_weighted_ownership_single_row(row_ownerships):
|
|
| 46 |
|
| 47 |
def reassess_dupes(row: pd.Series, salary_max: int) -> float:
|
| 48 |
st.write(f"DEBUG: row['salary'] = {row['salary']}")
|
|
|
|
|
|
|
|
|
|
| 49 |
st.write(f"DEBUG: threshold calc: {row['salary']} - ({salary_max} - 500) = {row['salary'] - (salary_max - 500)}")
|
| 50 |
st.write(f"DEBUG: max(0, threshold) = {max(0, row['salary'] - (salary_max - 500))}")
|
| 51 |
st.write(f"DEBUG: max/100 = {max(0, row['salary'] - (salary_max - 500)) / 100}")
|
|
|
|
| 46 |
|
| 47 |
def reassess_dupes(row: pd.Series, salary_max: int) -> float:
|
| 48 |
st.write(f"DEBUG: row['salary'] = {row['salary']}")
|
| 49 |
+
st.write(f"DEBUG: (salary_max - 500) = {salary_max - 500}")
|
| 50 |
+
st.write(f"DEBUG: row['salary'] - (salary_max - 500) = {row['salary'] - (salary_max - 500)}")
|
| 51 |
+
st.write(f"DEBUG: type check: {type(row['salary'] - (salary_max - 500))}")
|
| 52 |
st.write(f"DEBUG: threshold calc: {row['salary']} - ({salary_max} - 500) = {row['salary'] - (salary_max - 500)}")
|
| 53 |
st.write(f"DEBUG: max(0, threshold) = {max(0, row['salary'] - (salary_max - 500))}")
|
| 54 |
st.write(f"DEBUG: max/100 = {max(0, row['salary'] - (salary_max - 500)) / 100}")
|