MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / _setup_clear_output_dir

Method _setup_clear_output_dir

bench/python/bench_utils.py:156–167  ·  view source on GitHub ↗
(self, filename_ends_with)

Source from the content-addressed store, hash-verified

154 return vars_info_of_setup_function
155
156 def _setup_clear_output_dir(self, filename_ends_with):
157 output_dir = os.path.join(self.output_dir, self.__class__.__name__)
158
159 # Clear out the output directory or create it
160 if not os.path.isdir(output_dir):
161 os.makedirs(output_dir)
162 else:
163 for file in os.listdir(output_dir):
164 if os.path.isfile(file) and file.endswith(filename_ends_with):
165 os.remove(file)
166
167 return output_dir
168
169 def visualize(self):
170 """

Callers 1

visualizeMethod · 0.95

Calls 2

removeMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected