Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

allow user to ignore missing Seedlings files

Aperta
#1 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BergelsonLab/blabpy

Tutte le issue di BergelsonLab/blabpy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.