Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pote #259

Merged
merged 26 commits into from
Aug 9, 2024
Merged

Pote #259

merged 26 commits into from
Aug 9, 2024

Conversation

clallemand
Copy link
Contributor

New features

  • Ajout du code pour mettre POTE au format de données openfisca-survey-manager et initialisation d'un survey-scenario spécifique à POTE.
    • /openfisca_france_data/pote/

Copy link
Contributor

@benoit-cty benoit-cty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quel travail, bravo !

.gitignore Outdated Show resolved Hide resolved
.gitlab-ci/pote_openfisca_survey_manager_config.ini Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
survey_name: str = None,
batch_size: int = None,
batch_index: int = 0,
filter_by = None, # [(f'foyer_fiscal_id', 'in', [i for i in range(batch_size*batch_index,(batch_size*batch_index) + batch_size)])]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commentaire à garder ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oui je pense que c'est bien de le garder ça donne un exemple de comment doit être le filter_by

self.used_as_input_variables = var_to_keep + var_create_in_custom_input_data_frame
else:
self.used_as_input_variables = used_as_input_variables
#print("Données du scenario : \n", data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code à supprimer ?

self.init_from_data(
data=data,
rebuild_input_data=rebuild_input_data,
#config_files_directory=data["config_files_directory"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code à supprimer ?

@@ -58,8 +59,8 @@
"pypandoc",
'pytest >=7.2.2, <8.0',
"scipy >=1.2.1, <2.0.0",
"toolz >=0.9.0, <1.0.0",
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La convention en Python est plutôt de laisser les virgules sur les derniers éléments : https://stackoverflow.com/a/17002144

@clallemand clallemand merged commit 57636b7 into master Aug 9, 2024
12 checks passed
@clallemand clallemand deleted the pote branch August 9, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants