Skip to content

Commit 2357c4c

Browse files
pesapstaadecker
authored andcommitted
Quick fix to sort correctly timeseries using ascending order
1 parent 85150a1 commit 2357c4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

switch_model/wecc/get_inputs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ def query_db(full_config, skip_cf):
252252
join switch.period as t using(period_id, study_timeframe_id)
253253
where
254254
sampled_timeseries.time_sample_id = {time_sample_id}
255+
and sampled_timeseries.study_timeframe_id = {study_timeframe_id}
255256
order by
256257
label desc,
257-
timeseries desc;""",
258+
timeseries asc;""",
258259
)
259260

260261
# timepoints.csv

0 commit comments

Comments
 (0)