You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The KolmogorovSmirnov2Sample constraint can be initialized with DataReferences containing Conditions. This is apparent by the parameters in add_ks_2sample_constraint:
Yet, since get_ks_2sample in db_access operates on DataSource objects - instead of DataReference objects - the Conditions attached to DataReferences are ignored.
While a Condition was indeed used in one integration test, it was used for both DataReferences at the same time. Since the same test also succeeds without a Condition it did not became apparent that Conditions are ignored:
Resolving this issue is one of the many things we should obtain for free when tackling #29 and only ever accessing the underlying data via DataReference.get_selection - which takes care of these things under the hood.
The text was updated successfully, but these errors were encountered:
The
KolmogorovSmirnov2Sample
constraint can be initialized withDataReference
s containingCondition
s. This is apparent by the parameters inadd_ks_2sample_constraint
:https://github.com/Quantco/datajudge/blob/main/src/datajudge/requirements.py#L1276-L1277
Yet, since
get_ks_2sample
indb_access
operates onDataSource
objects - instead ofDataReference
objects - theCondition
s attached toDataReference
s are ignored.While a
Condition
was indeed used in one integration test, it was used for bothDataReference
s at the same time. Since the same test also succeeds without aCondition
it did not became apparent thatCondition
s are ignored:https://github.com/Quantco/datajudge/blob/main/tests/integration/test_integration.py#L1768-L1789
Resolving this issue is one of the many things we should obtain for free when tackling #29 and only ever accessing the underlying data via
DataReference.get_selection
- which takes care of these things under the hood.The text was updated successfully, but these errors were encountered: