Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
c1f80bb
1
Parent(s): 75dd4b0
Update slate handling in seed frame initialization for DK and FD to replace 'Auxiliary Slate' with 'Late Slate' for improved accuracy in data retrieval.
Browse files
src/sim_func_hold/regular_functions.py
CHANGED
|
@@ -20,12 +20,12 @@ def init_DK_seed_frames(slate_var, sharp_split):
|
|
| 20 |
raw_data = pd.DataFrame(list(cursor))
|
| 21 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 22 |
collection = db[f"DK_NFL_Secondary_seed_frame"]
|
| 23 |
-
elif slate_var == '
|
| 24 |
-
collection = db['
|
| 25 |
cursor = collection.find()
|
| 26 |
raw_data = pd.DataFrame(list(cursor))
|
| 27 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 28 |
-
collection = db[f"
|
| 29 |
|
| 30 |
cursor = collection.find().limit(sharp_split)
|
| 31 |
|
|
@@ -55,12 +55,12 @@ def init_FD_seed_frames(slate_var, sharp_split):
|
|
| 55 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 56 |
collection = db[f"FD_NFL_Secondary_seed_frame"]
|
| 57 |
cursor = collection.find().limit(sharp_split)
|
| 58 |
-
elif slate_var == '
|
| 59 |
-
collection = db['
|
| 60 |
cursor = collection.find()
|
| 61 |
raw_data = pd.DataFrame(list(cursor))
|
| 62 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 63 |
-
collection = db[f"
|
| 64 |
cursor = collection.find().limit(sharp_split)
|
| 65 |
|
| 66 |
raw_display = pd.DataFrame(list(cursor))
|
|
|
|
| 20 |
raw_data = pd.DataFrame(list(cursor))
|
| 21 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 22 |
collection = db[f"DK_NFL_Secondary_seed_frame"]
|
| 23 |
+
elif slate_var == 'Late Slate':
|
| 24 |
+
collection = db['DK_NFL_Late_name_map']
|
| 25 |
cursor = collection.find()
|
| 26 |
raw_data = pd.DataFrame(list(cursor))
|
| 27 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 28 |
+
collection = db[f"DK_NFL_Late_seed_frame"]
|
| 29 |
|
| 30 |
cursor = collection.find().limit(sharp_split)
|
| 31 |
|
|
|
|
| 55 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 56 |
collection = db[f"FD_NFL_Secondary_seed_frame"]
|
| 57 |
cursor = collection.find().limit(sharp_split)
|
| 58 |
+
elif slate_var == 'Late Slate':
|
| 59 |
+
collection = db['FD_NFL_Late_name_map']
|
| 60 |
cursor = collection.find()
|
| 61 |
raw_data = pd.DataFrame(list(cursor))
|
| 62 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
| 63 |
+
collection = db[f"FD_NFL_Late_seed_frame"]
|
| 64 |
cursor = collection.find().limit(sharp_split)
|
| 65 |
|
| 66 |
raw_display = pd.DataFrame(list(cursor))
|