Skip to content

Commit 959ee10

Browse files
pesapstaadecker
authored andcommitted
Quick fix to sort correctly timeseries using ascending order
1 parent 2cbf75a commit 959ee10

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
@@ -255,9 +255,10 @@ def query_db(full_config, skip_cf):
255255
join switch.period as t using(period_id, study_timeframe_id)
256256
where
257257
sampled_timeseries.time_sample_id = {time_sample_id}
258+
and sampled_timeseries.study_timeframe_id = {study_timeframe_id}
258259
order by
259260
label desc,
260-
timeseries desc;""",
261+
timeseries asc;""",
261262
)
262263

263264
# timepoints.csv

0 commit comments

Comments
 (0)