-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat(databases): create CACHE structure to ftp Directories & add CNES database #152
Merged
Conversation
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
luabida
changed the title
chore(Databases): explicity require load() content on Databases
chore(Databases): add CNES & explicity require load() content on Databases
Sep 4, 2023
luabida
force-pushed
the
cnes
branch
2 times, most recently
from
September 5, 2023 14:26
d6a7cef
to
ac1b26b
Compare
In [1]: database = CNES()
In [2]: database.load()
In [3]: database.content
Out[3]:
[/dissemin/publicos/CNES/200508_/Dados/DC,
/dissemin/publicos/CNES/200508_/Dados/EE,
/dissemin/publicos/CNES/200508_/Dados/EF,
/dissemin/publicos/CNES/200508_/Dados/EP,
/dissemin/publicos/CNES/200508_/Dados/EQ,
/dissemin/publicos/CNES/200508_/Dados/GM,
/dissemin/publicos/CNES/200508_/Dados/HB,
/dissemin/publicos/CNES/200508_/Dados/IN,
/dissemin/publicos/CNES/200508_/Dados/LT,
/dissemin/publicos/CNES/200508_/Dados/PF,
/dissemin/publicos/CNES/200508_/Dados/RC,
/dissemin/publicos/CNES/200508_/Dados/SR,
/dissemin/publicos/CNES/200508_/Dados/ST]
In [4]: database.load(groups=['DC', 'ST'])
In [5]: database.files[:5]
Out[5]: [DCAC0508.dbc, DCAC0509.dbc, DCAC0510.dbc, DCAC0511.dbc, DCAC0512.dbc]
In [6]: database.get_files('DC', ['AC', 'SP'], 2023, [1,2,3])
Out[6]:
[DCAC2301.dbc,
DCAC2302.dbc,
DCAC2303.dbc,
DCSP2301.dbc,
DCSP2302.dbc,
DCSP2303.dbc] |
luabida
force-pushed
the
cnes
branch
3 times, most recently
from
September 13, 2023 21:30
b90e191
to
82f9958
Compare
luabida
changed the title
chore(Databases): add CNES & explicity require load() content on Databases
feat(databases): create CACHE structure to ftp Directories & add CNES database
Sep 14, 2023
fccoelho
approved these changes
Sep 14, 2023
…tion to a better structure
@fccoelho can be merged if CI is green |
luabida
force-pushed
the
cnes
branch
3 times, most recently
from
September 16, 2023 00:33
dc80383
to
e7a5708
Compare
🎉 This PR is included in version 0.10.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
No description provided.