Omit ultralytics/utils/callbacks from coverage (#4345)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
d47718c367
commit
c940d29d4f
18 changed files with 63 additions and 36 deletions
|
|
@ -318,6 +318,7 @@ class Results(SimpleClass):
|
|||
texts.append(('%g ' * len(line)).rstrip() % line)
|
||||
|
||||
if texts:
|
||||
Path(txt_file).parent.mkdir(parents=True, exist_ok=True) # make directory
|
||||
with open(txt_file, 'a') as f:
|
||||
f.writelines(text + '\n' for text in texts)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue