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

feat(databases): create CACHE structure to ftp Directories & add CNES database #152

Merged
merged 35 commits into from
Sep 18, 2023

Conversation

luabida
Copy link
Collaborator

@luabida luabida commented Sep 4, 2023

No description provided.

@luabida 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 luabida force-pushed the cnes branch 2 times, most recently from d6a7cef to ac1b26b Compare September 5, 2023 14:26
@luabida luabida marked this pull request as ready for review September 5, 2023 14:26
@luabida
Copy link
Collaborator Author

luabida commented Sep 5, 2023

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 luabida force-pushed the cnes branch 3 times, most recently from b90e191 to 82f9958 Compare September 13, 2023 21:30
@luabida 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
@luabida
Copy link
Collaborator Author

luabida commented Sep 15, 2023

@fccoelho can be merged if CI is green

@luabida luabida force-pushed the cnes branch 3 times, most recently from dc80383 to e7a5708 Compare September 16, 2023 00:33
@luabida luabida requested a review from fccoelho September 16, 2023 14:38
@luabida luabida merged commit b99dd38 into AlertaDengue:main Sep 18, 2023
2 checks passed
@luabida luabida deleted the cnes branch September 18, 2023 21:28
@github-actions
Copy link

🎉 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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants