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(core-cli): tqdm , flatten properties , argument for release version #18

Closed
wants to merge 7 commits into from

Conversation

kshitijrajsharma
Copy link

@kshitijrajsharma kshitijrajsharma commented Apr 28, 2024

What does this PR do ?

Consideration

I couldn't add full tqdm support due to the generator in arrow dataset as it doesn't provide whats the total batch gonna be in advance , May be something to look in future . I have added new cli argument it would be good to choose version also we need to validate before attempting actual download . It will fail anyway if wrong version is supplied and it is optional so that it won't break any exisiting implementations . We need to add tests as well so that I will know if I break anything

How to test ?

WIP

Note :

PR is in draft , Work in Progress

…version to argument , adds new cli command for release version

Also adds method to flatten the properties when geojson is selected as a output format , black formats the code , we might need to check the release before attempting to download
@jwass
Copy link
Collaborator

jwass commented Apr 28, 2024

Hi @kshitijrajsharma - Thanks for the contributions!

Can you make the different functionalities as separate PRs?

  • release version - Specifying different releases is a no-brainer. But maybe just make it "--release/-r" instead of "dataset-version". I think this would be an easy merge.
  • progress bar - let's omit this for now
  • flatten properties - this might require a separate flag for geojson output but I don't know that it should be the default. And there should be a broader discussion of the right way to do it.

…version to release as cli\

cli version changes and refactor for the tqdm
@kshitijrajsharma
Copy link
Author

Thanks @jwass . Will do ! I understand the concern in flatten properties !

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.

Add support for choice of dataset version ? Add Progress for downloads
2 participants