From d04dcc8c596bb757161c57c75160ae0d14f55840 Mon Sep 17 00:00:00 2001 From: hyi Date: Wed, 13 Mar 2024 11:44:49 -0400 Subject: [PATCH] fixing test failures --- test/api/test_associations_to_all_features.py | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/test/api/test_associations_to_all_features.py b/test/api/test_associations_to_all_features.py index cb1f568..1c5001b 100644 --- a/test/api/test_associations_to_all_features.py +++ b/test/api/test_associations_to_all_features.py @@ -15,19 +15,19 @@ APP, """ PatientId,year,AgeStudyStart,Albuterol - varchar(255),int,varchar(255),varchar(255) - 1,2010,0-2, - 2,2010,0-2, - 3,2010,0-2, - 4,2010,0-2, - 5,2010,0-2, - 6,2010,0-2, - 7,2010,0-2, - 8,2010,0-2, - 9,2010,0-2, - 10,2010,0-2, - 11,2010,0-2, - 12,2010,0-2, + varchar(255),int,int,varchar(255) + 1,2010,2, + 2,2010,2, + 3,2010,2, + 4,2010,2, + 5,2010,2, + 6,2010,2, + 7,2010,2, + 8,2010,2, + 9,2010,2, + 10,2010,2, + 11,2010,2, + 12,2010,2, """, """ cohort_id,size,features,table,year @@ -41,7 +41,7 @@ def test_associations_to_all_features_nulls(): "feature_name": "AgeStudyStart", "feature_qualifier": { "operator": "=", - "value": "0-2" + "value": 2 } }, "maximum_p_value": 1, @@ -62,19 +62,19 @@ def test_associations_to_all_features_nulls(): APP, """ PatientId,year,AgeStudyStart,Albuterol,AvgDailyPM2.5Exposure,EstResidentialDensity,AsthmaDx - varchar(255),int,varchar(255),varchar(255),int,int,int - 1,2010,0-2,0,1,0,1 - 2,2010,0-2,1,1,0,0 - 3,2010,3-7,>1,1,0,0 - 4,2010,0-2,0,2,0,1 - 5,2010,3-7,1,2,0,1 - 6,2010,3-7,>1,2,0,1 - 7,2010,0-2,0,3,0,0 - 8,2010,0-2,1,3,0,0 - 9,2010,0-2,>1,3,0,0 - 10,2010,0-2,0,4,0,0 - 11,2010,0-2,1,4,0,0 - 12,2010,3-7,>1,4,0,1 + varchar(255),int,int,varchar(255),int,int,int + 1,2010,2,0,1,0,1 + 2,2010,2,1,1,0,0 + 3,2010,7,>1,1,0,0 + 4,2010,2,0,2,0,1 + 5,2010,7,1,2,0,1 + 6,2010,7,>1,2,0,1 + 7,2010,2,0,3,0,0 + 8,2010,2,1,3,0,0 + 9,2010,2,>1,3,0,0 + 10,2010,2,0,4,0,0 + 11,2010,2,1,4,0,0 + 12,2010,7,>1,4,0,1 """, """ cohort_id,size,features,table,year @@ -88,7 +88,7 @@ def test_associations_to_all_features_explicit(): "feature_name": "AgeStudyStart", "feature_qualifier": { "operator": "=", - "value": "2" + "value": 2 } }, "maximum_p_value": 1 @@ -106,19 +106,19 @@ def test_associations_to_all_features_explicit(): APP, """ PatientId,year,AgeStudyStart,Albuterol,AvgDailyPM2.5Exposure,EstResidentialDensity,AsthmaDx - varchar(255),int,varchar(255),varchar(255),int,int,int - 1,2010,0-2,0,1,0,1 - 2,2010,0-2,1,1,0,1 - 3,2010,0-2,>1,1,0,1 - 4,2010,0-2,0,2,0,1 - 5,2010,0-2,1,2,0,1 - 6,2010,0-2,>1,2,0,1 - 7,2010,0-2,0,3,0,1 - 8,2010,0-2,1,3,0,1 - 9,2010,0-2,>1,3,0,1 - 10,2010,0-2,0,4,0,1 - 11,2010,0-2,1,4,0,1 - 12,2010,0-2,>1,4,0,1 + varchar(255),int,int,varchar(255),int,int,int + 1,2010,2,0,1,0,1 + 2,2010,2,1,1,0,1 + 3,2010,2,>1,1,0,1 + 4,2010,2,0,2,0,1 + 5,2010,2,1,2,0,1 + 6,2010,2,>1,2,0,1 + 7,2010,2,0,3,0,1 + 8,2010,2,1,3,0,1 + 9,2010,2,>1,3,0,1 + 10,2010,2,0,4,0,1 + 11,2010,2,1,4,0,1 + 12,2010,2,>1,4,0,1 """, """ cohort_id,size,features,table,year @@ -132,7 +132,7 @@ def test_associations_to_all_features_explicit_non_integer_p_value(): "feature_name": "AgeStudyStart", "feature_qualifier": { "operator": "=", - "value": "2" + "value": 2 } }, "maximum_p_value": 0.5 @@ -150,7 +150,7 @@ def test_associations_to_all_features_explicit_non_integer_p_value(): APP, """ PatientId,year,AgeStudyStart,Albuterol,AvgDailyPM2.5Exposure,EstResidentialDensity,AsthmaDx - varchar(255),int,varchar(255),varchar(255),int,int,int + varchar(255),int,int,varchar(255),int,int,int 1,2010,2,0,1,0,1 2,2010,2,1,1,0,1 3,2010,2,>1,1,0,1 @@ -175,7 +175,7 @@ def test_associations_to_all_features_with_correction(): "feature": { "AgeStudyStart": { "operator": "=", - "value": "2" + "value": 2 } }, "correction": { @@ -196,7 +196,7 @@ def test_associations_to_all_features_with_correction(): APP, """ PatientId,year,AgeStudyStart,Albuterol,AvgDailyPM2.5Exposure,EstResidentialDensity,AsthmaDx - varchar(255),int,varchar(255),varchar(255),int,int,int + varchar(255),int,int,varchar(255),int,int,int 1,2010,2,0,1,0,1 2,2010,2,1,1,0,1 3,2010,2,>1,1,0,1 @@ -221,7 +221,7 @@ def test_associations_to_all_features_with_correction_with_alpha(): "feature": { "AgeStudyStart": { "operator": "=", - "value": "2" + "value": 2 } }, "correction": {