Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Create CLI #2

Closed
nrweir opened this issue Mar 12, 2019 · 3 comments
Closed

Create CLI #2

nrweir opened this issue Mar 12, 2019 · 3 comments

Comments

@nrweir
Copy link
Collaborator

nrweir commented Mar 12, 2019

Create scripts and add setup.py entry points for CLI functions to complete various tasks through this repo.

This will likely be a meta-issue to organize various tasks for this repo.

@nrweir
Copy link
Collaborator Author

nrweir commented Apr 4, 2019

Functionality to be included:

  • Making masks (in batch)
  • Mask -> vector labels (in batch)
  • Geo-registration (or the inverse) of polygon dfs/files (in batch)
  • Geo-registration (or the inverse) of road linestring dfs/files (in batch)
  • Creating graphs from SpaceNet data (in batch)

Notes

CLI usage

I envision the following process for passing variables into these functions.
Option 1 (recommended): Variables can be passed in columns of a csv. This will enable users to define different values for each iteration through the process.
Option 2: variable names can be passed as flagged arguments to the CLI.
...or some mix of the above.

Multiprocessing

I think it'd be great to enable parallelization where possible in this process. Will need to see how feasible that is going to be.

Implementation notes

I think it will probably make sense as an argument processing step to take in all of the arguments that the user provides and effectively turn each argument needed for the call to the underlying functionality into iterators (or elements of a single iterator) which can then be passed to the underlying function(s) through multiprocessing.Pool.map() (if workers > 1).

@nrweir
Copy link
Collaborator Author

nrweir commented Apr 8, 2019

Georegistration of linestrings/the reverse can be completed using the same functionality in polygon.

@nrweir nrweir mentioned this issue Apr 10, 2019
@nrweir
Copy link
Collaborator Author

nrweir commented Apr 10, 2019

Resolved with #42.

@nrweir nrweir closed this as completed Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant