Skip to content

Commit 38d12f3

Browse files
authored
Fix incorrect reuse of input solar features (#200)
1 parent f1fdf99 commit 38d12f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ checkpoints/
1111
lightning_logs/
1212
pixi.lock
1313
.python-version
14+
.venv/

graph_weather/data/dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __getitem__(self, item):
117117
end_solar_times.append(
118118
np.array([extraterrestrial_irrad(when, lat, lon) for lat, lon in lat_lons])
119119
)
120-
end_solar_times = np.array(solar_times)
120+
end_solar_times = np.array(end_solar_times)
121121

122122
# Normalize to between -1 and 1
123123
solar_times -= const.SOLAR_MEAN

0 commit comments

Comments
 (0)