James McCool
commited on
Commit
·
817c616
1
Parent(s):
4b826cf
Add debug statement in reassess_dupes function to log salary and ownership differences, enhancing troubleshooting capabilities for ownership adjustments.
Browse files
global_func/reassess_edge.py
CHANGED
|
@@ -8,6 +8,7 @@
|
|
| 8 |
import pandas as pd
|
| 9 |
import numpy as np
|
| 10 |
import math
|
|
|
|
| 11 |
|
| 12 |
def calculate_weighted_ownership_single_row(row_ownerships):
|
| 13 |
"""
|
|
@@ -44,6 +45,7 @@ def calculate_weighted_ownership_single_row(row_ownerships):
|
|
| 44 |
return weighted * 10000
|
| 45 |
|
| 46 |
def reassess_dupes(row: pd.Series, salary_max: int) -> float:
|
|
|
|
| 47 |
return math.ceil(row['Dupes'] +
|
| 48 |
(
|
| 49 |
# Salary component: base +2 + salary_diff/200 for every $100 above threshold
|
|
|
|
| 8 |
import pandas as pd
|
| 9 |
import numpy as np
|
| 10 |
import math
|
| 11 |
+
import streamlit as st
|
| 12 |
|
| 13 |
def calculate_weighted_ownership_single_row(row_ownerships):
|
| 14 |
"""
|
|
|
|
| 45 |
return weighted * 10000
|
| 46 |
|
| 47 |
def reassess_dupes(row: pd.Series, salary_max: int) -> float:
|
| 48 |
+
st.write(f"DEBUG: salary={row['salary']}, salary_max={salary_max}, salary_diff={row['salary_diff']}, own_diff={row['own_diff']}")
|
| 49 |
return math.ceil(row['Dupes'] +
|
| 50 |
(
|
| 51 |
# Salary component: base +2 + salary_diff/200 for every $100 above threshold
|