IndexError when plotting annotations out of range
Nessuno ha ancora preso questa issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 853
- Fork
- 322
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If you pass annotations to plot_items or plot_wfdb that are before the start or after the end of the supplied signals, it will give an error
Exception: IndexError: try setting shift_samps=True in the "rdann" function?
The error message has a valid point, in that if you load a subset using sampfrom then the default behavior of rdrecord and rdann is different, which can be confusing.
Still, it's quite possible to load annotations that are outside the time range of the signals you're plotting. In such a case it's often desirable to either:
-
hide all annotations that occur before/after the signal time range
-
plot the annotations anyway (with a y-value of zero), and extend the horizontal range of the plot (or maybe not)
So it'd be nice to have one or both of these behaviors as an option at least. Not sure what the default for plot_wfdb should be.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dagli entry point plot_items e plot_wfdb e riproduci l’IndexError usando annotazioni al di fuori dell’intervallo del segnale fornito. Confronta il comportamento richiesto tra nascondere e tracciare e decidi come debba funzionare il comportamento predefinito per plot_wfdb. Il lavoro è completato quando il comportamento scelto è esposto come opzione e le annotazioni fuori intervallo non causano più l’errore segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- data-visualization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100