-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbotElectrico_comparison_summary.txt
More file actions
26 lines (23 loc) · 1.42 KB
/
Copy pathbotElectrico_comparison_summary.txt
File metadata and controls
26 lines (23 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Key Differences Between main and gh-pages Branches - botElectrico.py:
MAIN BRANCH:
- Uses argparse for command-line arguments (-s for simulation, -t for time)
- Imports many libraries including pandas, plotly for advanced visualization
- Has modular structure with functions split across multiple files (data_handler.py, price_calculator.py, visualizer.py, social_media.py)
- Uses API constants (API_BASE, API_URL, TIME_RANGES, etc.) defined in the file
- Has comprehensive error handling for missing socialModules dependency
- Implements both daily summary and hourly message posting functions
- Uses structured data processing with safe_get function
- Includes multiple visualization options (Chart.js, Plotly, Matplotlib)
GH-PAGES BRANCH:
- Simpler import structure with fewer dependencies
- Uses direct imports from socialModules.configMod
- More basic command-line handling (just checks for -t flag)
- Hardcoded API URL construction
- Different time range definitions
- Simpler data retrieval and processing
- Basic matplotlib plotting only
- Different social media destination handling
- Different message formatting and length checking
- More basic error handling
SUMMARY:
The main branch represents a more mature, modular version with better error handling and multiple visualization options, while the gh-pages branch appears to be an older, simpler version that may be used for static site generation or a different deployment scenario.