@@ -89,23 +89,26 @@ def get_img_data(config, build_experiment_infos=False, build_analysis_infos=Fals
89
89
90
90
91
91
def get_img_name (img_id ):
92
- infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' , silent = True )
92
+ infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' ,
93
+ silent = True , atleast_2d = True )
93
94
for i in range (infos .shape [0 ]):
94
95
if int (infos [i , 0 ]) == int (img_id ):
95
96
return infos [i , 1 ]
96
97
raise NameError ("Could not find an image name to id {}." .format (img_id ))
97
98
98
99
99
100
def get_img_id (img_name ):
100
- infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' , silent = True )
101
+ infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' ,
102
+ silent = True , atleast_2d = True )
101
103
for i in range (infos .shape [0 ]):
102
104
if infos [i , 1 ] == img_name :
103
105
return infos [i , 0 ]
104
106
raise NameError ("Could not find an image id for {}." .format (img_name ))
105
107
106
108
107
109
def get_last_img_id ():
108
- infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' , silent = True )
110
+ infos = load_file ('.{}analysis{}image_infos_analysis.csv' .format (sep , sep ), ',' , 'str' ,
111
+ silent = True , atleast_2d = True )
109
112
return int (infos [- 1 , 0 ])
110
113
111
114
# """
0 commit comments