-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
19 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
""" | ||
This module contains the pipeline useful to automatically add categories to a staffette file. | ||
Requires the individual file to be present. | ||
All files must be downloaded from the UISP nazionale portal. | ||
Questo programma riempie automaticamente la categoria nei file staffette se presente il file di iscrizioni individuali." | ||
""" | ||
|
||
from goanduisp.core import find_categories | ||
from goanduisp.version import __version_core__, __version_io__ | ||
from goanduisp.core import fill_categories | ||
from goanduisp.io import print_info, get_file_name, import_df | ||
|
||
__version__ = "2023.12.5" | ||
__version__ = "2024.12.8" | ||
__author__ = "Gregorio Berselli" | ||
|
||
if __name__ == "__main__": | ||
print(f"Relay Categories by {__author__}, aggiornato al {__version__}") | ||
print(f"Basato su GOandUISP: core v{__version_core__} - io v{__version_io__}\n") | ||
print( | ||
"Questo programma riempie automaticamente la categoria nei file staffette," | ||
+ " se presente il file di iscrizioni individuali.\n" | ||
) | ||
find_categories() | ||
print_info("Relay Categories", __author__, __version__) | ||
print(__doc__) | ||
print("Selezionare il file delle iscrizioni delle staffette.") | ||
df = import_df(get_file_name()) | ||
print("Selezionare il file delle iscrizioni individuali.") | ||
df_data = import_df(get_file_name()) | ||
df = fill_categories(df, df_data) | ||
df.to_csv("iscrizioni-staffette.csv", index=False, sep=";") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters