Skip to content

Commit

Permalink
fixing test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
hyi committed Mar 13, 2024
1 parent 12df8ca commit d04dcc8
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions test/api/test_associations_to_all_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -175,7 +175,7 @@ def test_associations_to_all_features_with_correction():
"feature": {
"AgeStudyStart": {
"operator": "=",
"value": "2"
"value": 2
}
},
"correction": {
Expand All @@ -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
Expand All @@ -221,7 +221,7 @@ def test_associations_to_all_features_with_correction_with_alpha():
"feature": {
"AgeStudyStart": {
"operator": "=",
"value": "2"
"value": 2
}
},
"correction": {
Expand Down

0 comments on commit d04dcc8

Please sign in to comment.