Repository navigation
Fix get_series_list - #257
Merged
Merged
Conversation
tgrandje
reviewed
Mar 5, 2025
tgrandje
left a comment
Collaborator
There was a problem hiding this comment.
Just a few comments, but this is mostly ok for me!
Comment on lines
+21
to
+33
| INSEE_sdmx_link_datastructure = ( | ||
| "https://bdm.insee.fr/series/sdmx/datastructure/FR1" | ||
| ) | ||
| INSEE_api_link_datastructure = ( | ||
| "https://api.insee.fr/series/BDM/V1/datastructure/FR1" | ||
| ) | ||
|
|
||
| INSEE_sdmx_link_datastructure_dataset = ( | ||
| INSEE_sdmx_link_datastructure + "/" + dataset | ||
| ) | ||
| INSEE_api_link_datastructure_dataset = ( | ||
| INSEE_api_link_datastructure + "/" + dataset | ||
| ) |
Collaborator
There was a problem hiding this comment.
Should we move the 2 first statements to pure constants outside the function (maybe even move to constants.py) and reset to lower case for the two variables later on?
EDIT : no, I see there are still too many constants of that style, we should move all of those in a different PR or not at all. I let this comment for memory's sake.
4 tasks done
tfardet
added a commit
to tfardet/pynsee
that referenced
this pull request
May 11, 2025
* Refactor macrodata Signed-off-by: Tanguy Fardet <[email protected]> Former-commit-id: 17467ad
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #201
I also took the opportunity to refactor the imports and group functions that we doing similar things or were not used anywhere else into single files.
The main changes are:
pynsee/macrodata/_get_dimensions(which now contains both_get_dataset_dimensionand_get_dimension_valuesto reduce code duplication)pynsee/macrodata/_download_idbanks(that contains all idbanks-related stuff since they were only used internally by_download_idbank_list)pynsee/macrodata/_get_metadata(which now contains both_get_dataset_metadataand_get_dataset_metadata_corethat was only used internally)Once this is merged, I would propose to make a bugfix release with a fix for #255 at the same time if that's OK with you, @tgrandje and @hadrilec