File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def _sync_offline_file(country):
111
111
print ("Files do not exist. Gathering new data." )
112
112
try :
113
113
data = _gather_energy_data (country , start_time , end_time )
114
- if data :
114
+ if not data . empty :
115
115
data .to_csv (csv_file_path , index = False )
116
116
first_start_time1 = data .iloc [0 ]["startTime" ]
117
117
last_start_time1 = data .iloc [- 1 ]["startTime" ]
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " codegreen_core"
3
- version = " 0.0.7 "
3
+ version = " 0.0.8 "
4
4
description = " This package helps you become aware of the carbon footprint of your computation"
5
5
authors = [" Anne Hartebrodt <anne.hartebrodt@fau.de>" ," Shubh Vardhan Jain <shubh.v.jain@fau.de>" ]
6
6
readme = " README.md"
You can’t perform that action at this time.
0 commit comments