haileyhalimj@gmail.com commited on
Commit Β·
c9c4af4
1
Parent(s): 1131bea
Update all imports from src.etl to src.preprocess
Browse files- config_page.py +5 -5
- src/config/optimization_config.py +2 -2
- src/demand_filtering.py +1 -1
- src/preprocess/transform.py +1 -1
config_page.py
CHANGED
|
@@ -695,7 +695,7 @@ def save_configuration():
|
|
| 695 |
# Get available demand dates from data to determine the actual date range
|
| 696 |
try:
|
| 697 |
sys.path.append('src')
|
| 698 |
-
import src.
|
| 699 |
import pandas as pd
|
| 700 |
from datetime import datetime
|
| 701 |
|
|
@@ -950,7 +950,7 @@ def display_user_friendly_summary(config):
|
|
| 950 |
st.subheader("π Demand Data Preview")
|
| 951 |
try:
|
| 952 |
sys.path.append('src')
|
| 953 |
-
import src.
|
| 954 |
from datetime import datetime
|
| 955 |
|
| 956 |
# Get demand data for the configured start date
|
|
@@ -1038,8 +1038,8 @@ def clear_all_cache_and_results():
|
|
| 1038 |
|
| 1039 |
# 2. Force reload all related modules to clear any module-level caches
|
| 1040 |
modules_to_reload = [
|
| 1041 |
-
'src.
|
| 1042 |
-
'src.
|
| 1043 |
'src.config.optimization_config',
|
| 1044 |
'src.models.optimizer_real'
|
| 1045 |
]
|
|
@@ -1064,7 +1064,7 @@ def clear_all_cache_and_results():
|
|
| 1064 |
planning_days = 5
|
| 1065 |
|
| 1066 |
sys.path.append('src')
|
| 1067 |
-
import src.
|
| 1068 |
extract.set_global_dates(st.session_state.start_date, calculated_end_date)
|
| 1069 |
st.write(f"π
Updated global dates: {st.session_state.start_date} to {calculated_end_date} ({planning_days} days)")
|
| 1070 |
|
|
|
|
| 695 |
# Get available demand dates from data to determine the actual date range
|
| 696 |
try:
|
| 697 |
sys.path.append('src')
|
| 698 |
+
import src.preprocess.extract as extract
|
| 699 |
import pandas as pd
|
| 700 |
from datetime import datetime
|
| 701 |
|
|
|
|
| 950 |
st.subheader("π Demand Data Preview")
|
| 951 |
try:
|
| 952 |
sys.path.append('src')
|
| 953 |
+
import src.preprocess.extract as extract
|
| 954 |
from datetime import datetime
|
| 955 |
|
| 956 |
# Get demand data for the configured start date
|
|
|
|
| 1038 |
|
| 1039 |
# 2. Force reload all related modules to clear any module-level caches
|
| 1040 |
modules_to_reload = [
|
| 1041 |
+
'src.preprocess.extract',
|
| 1042 |
+
'src.preprocess.transform',
|
| 1043 |
'src.config.optimization_config',
|
| 1044 |
'src.models.optimizer_real'
|
| 1045 |
]
|
|
|
|
| 1064 |
planning_days = 5
|
| 1065 |
|
| 1066 |
sys.path.append('src')
|
| 1067 |
+
import src.preprocess.extract as extract
|
| 1068 |
extract.set_global_dates(st.session_state.start_date, calculated_end_date)
|
| 1069 |
st.write(f"π
Updated global dates: {st.session_state.start_date} to {calculated_end_date} ({planning_days} days)")
|
| 1070 |
|
src/config/optimization_config.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
-
import src.
|
| 3 |
import datetime
|
| 4 |
from datetime import timedelta
|
| 5 |
-
import src.
|
| 6 |
from src.config.constants import ShiftType, LineType, KitLevel, DefaultConfig
|
| 7 |
|
| 8 |
# Re-import all the packages
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
+
import src.preprocess.transform as transformed_data
|
| 3 |
import datetime
|
| 4 |
from datetime import timedelta
|
| 5 |
+
import src.preprocess.extract as extract
|
| 6 |
from src.config.constants import ShiftType, LineType, KitLevel, DefaultConfig
|
| 7 |
|
| 8 |
# Re-import all the packages
|
src/demand_filtering.py
CHANGED
|
@@ -11,7 +11,7 @@ The filtered data is used by the optimization system.
|
|
| 11 |
|
| 12 |
import pandas as pd
|
| 13 |
from typing import Dict, List, Tuple
|
| 14 |
-
from src.
|
| 15 |
|
| 16 |
|
| 17 |
class DemandFilter:
|
|
|
|
| 11 |
|
| 12 |
import pandas as pd
|
| 13 |
from typing import Dict, List, Tuple
|
| 14 |
+
from src.preprocess import extract
|
| 15 |
|
| 16 |
|
| 17 |
class DemandFilter:
|
src/preprocess/transform.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
-
import src.
|
| 3 |
|
| 4 |
|
| 5 |
def get_product_list():
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
+
import src.preprocess.extract as ex
|
| 3 |
|
| 4 |
|
| 5 |
def get_product_list():
|