Skip to content

Commit 45a6615

Browse files
committed
Present datapoints in the same order as they are stored in the T1 doc
1 parent a3aa72c commit 45a6615

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ampel/ingest/ChainedIngestionHandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ def ingest_point_t2s(self,
626626
add_other_tag: None | MetaActivity = None,
627627
meta_extra: None | dict[str, Any] = None
628628
) -> None:
629+
# Present datapoints in the same order as they are stored in the T1 document
630+
if self.t1_compiler.sort:
631+
dps = sorted(dps, key=lambda x: x["id"])
629632

630633
for t2b in point_t2:
631634

0 commit comments

Comments
 (0)