We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be25b51 commit b762293Copy full SHA for b762293
src/ert/storage/local_ensemble.py
@@ -986,13 +986,17 @@ def get_observations_and_responses(
986
)
987
988
elif "time" in pivoted:
989
- joined = observations_for_type.join_asof(
990
- pivoted,
991
- by=[
992
- "response_key",
993
- *[k for k in response_cls.primary_key if k != "time"],
994
- ],
+ by_cols = [
+ "response_key",
+ *[k for k in response_cls.primary_key if k != "time"],
+ ]
+ joined = observations_for_type.sort(
+ by=[*by_cols, "time"]
995
+ ).join_asof(
996
+ pivoted.sort(by=[*by_cols, "time"]),
997
+ by=by_cols,
998
on="time",
999
+ check_sortedness=False, # Ref: https://github.com/pola-rs/polars/issues/21693
1000
strategy="nearest",
1001
tolerance="1s",
1002
0 commit comments