talmolab / sleap

A deep learning framework for multi-animal pose tracking.
https://sleap.ai
Other
435 stars 97 forks source link

Improve error message for detecting video backend #1441

Closed roomrys closed 1 year ago

roomrys commented 1 year ago

Description

This error message is very annoying because it is very uninformative:

    raise ValueError("Could not detect backend for specified filename.")
ValueError: Could not detect backend for specified filename.

This PR takes away some of the annoyance by providing the filename:

    raise ValueError(f"Could not detect backend for specified filename: {filename}")
ValueError: Could not detect backend for specified filename: D:\social-leap-estimates-animal-poses\datasets\colab.slp.training_job

Types of changes

Does this address any currently open issues?

[list open issues here]

Outside contributors checklist

Thank you for contributing to SLEAP!

:heart:

codecov[bot] commented 1 year ago

Codecov Report

Merging #1441 (f979045) into develop (1151a95) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #1441   +/-   ##
========================================
  Coverage    73.03%   73.03%           
========================================
  Files          133      133           
  Lines        23768    23768           
========================================
+ Hits         17358    17359    +1     
+ Misses        6410     6409    -1     
Files Changed Coverage Δ
sleap/io/video.py 92.04% <100.00%> (+0.15%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more