We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 097f0c4 commit b2867a1Copy full SHA for b2867a1
codegreen_core/data/offline.py
@@ -111,7 +111,7 @@ def _sync_offline_file(country):
111
print("Files do not exist. Gathering new data.")
112
try:
113
data = _gather_energy_data(country, start_time, end_time)
114
- if data :
+ if not data.empty :
115
data.to_csv(csv_file_path, index=False)
116
first_start_time1 = data.iloc[0]["startTime"]
117
last_start_time1 = data.iloc[-1]["startTime"]
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "codegreen_core"
3
-version = "0.0.7"
+version = "0.0.8"
4
description = "This package helps you become aware of the carbon footprint of your computation"
5
authors = ["Anne Hartebrodt <anne.hartebrodt@fau.de>","Shubh Vardhan Jain <shubh.v.jain@fau.de>"]
6
readme = "README.md"
0 commit comments