@@ -1638,7 +1638,7 @@ def test_patch_pred_store() -> None:
16381638 "other" : "other" ,
16391639 }
16401640
1641- store = misc .patch_pred_store (patch_output , (1.0 , 1.0 ))
1641+ store = misc .dict_to_store (patch_output , (1.0 , 1.0 ))
16421642
16431643 # Check that its an SQLiteStore containing the expected annotations
16441644 assert isinstance (store , SQLiteStore )
@@ -1651,7 +1651,7 @@ def test_patch_pred_store() -> None:
16511651 patch_output .pop ("coordinates" )
16521652 # check correct error is raised if coordinates are missing
16531653 with pytest .raises (ValueError , match = "coordinates" ):
1654- misc .patch_pred_store (patch_output , (1.0 , 1.0 ))
1654+ misc .dict_to_store (patch_output , (1.0 , 1.0 ))
16551655
16561656
16571657def test_patch_pred_store_cdict () -> None :
@@ -1665,7 +1665,7 @@ def test_patch_pred_store_cdict() -> None:
16651665 "other" : "other" ,
16661666 }
16671667 class_dict = {0 : "class0" , 1 : "class1" }
1668- store = misc .patch_pred_store (patch_output , (1.0 , 1.0 ), class_dict = class_dict )
1668+ store = misc .dict_to_store (patch_output , (1.0 , 1.0 ), class_dict = class_dict )
16691669
16701670 # Check that its an SQLiteStore containing the expected annotations
16711671 assert isinstance (store , SQLiteStore )
@@ -1686,7 +1686,7 @@ def test_patch_pred_store_sf() -> None:
16861686 "probabilities" : [[0.1 , 0.9 ], [0.9 , 0.1 ], [0.4 , 0.6 ]],
16871687 "labels" : [1 , 0 , 1 ],
16881688 }
1689- store = misc .patch_pred_store (patch_output , (2.0 , 2.0 ))
1689+ store = misc .dict_to_store (patch_output , (2.0 , 2.0 ))
16901690
16911691 # Check that its an SQLiteStore containing the expected annotations
16921692 assert isinstance (store , SQLiteStore )
0 commit comments