allow user to ignore missing Seedlings files
@kalenkovich ci sta già lavorando.
Dal 24/12/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Right now, all the get_xxx(child, month) functions in blabpy.seedlings.paths throw an error when a file is missing. This causes the functions that operate on multiple files to fail a bit too early sometimes: the user will know that a single file is missing while it would be more useful to have a list of all the files that are missing. For example, blabpy.seedlings.pipeline.merge_all_annotations_with_basic_level operates on all csv files exported from cha/opf files that it finds in the given folder. For each of them, it finds a corresponding file with basic levels already filled. If such a file is missing, there will be a single FileNotFound exception thrown. Wrapping in try-except is verbous and the actual paths would have to be extracted from the error messages. A better option would be to have an extra argument ignore_file_not_found that would default to False. To avoid repetition, both adding this argument and checking that the file exists can be relegated to a decorator function.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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.
Altre issue di BergelsonLab/blabpy
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
BergelsonLab/blabpy#35 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
BergelsonLab/blabpy#34 · 1 commento ·
-
add `vihi annotation update-links`Forse di nuovo libera @kalenkovich l’ha presa 629 giorni fa e non c’è nessuna pull request aperta. Aperta
BergelsonLab/blabpy#32 · 1 assegnatario ·
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
BergelsonLab/blabpy#31 ·
-
avoid printing traceback for console script errorsForse di nuovo libera @kalenkovich l’ha presa 1114 giorni fa e non c’è nessuna pull request aperta. Aperta
BergelsonLab/blabpy#29 · 1 assegnatario ·
Tutte le issue di BergelsonLab/blabpy
Issue simili
-
approved Good First Issue scope: docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
hiero-ledger/hiero-sdk-python#2730 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
wemake-services/wemake-django-template#3178 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
md/asciidoc/csv: an explicit `encoding="utf-8"` keeps a leading BOM, the auto-detect path drops itAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
docling-project/docling#4846 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
neurostuff/NiMARE#1181 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pytest-dev/pytest#15180 ·
I maintainer di solito rispondono entro 1 giorno