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

preview fails with: missing 1 required positional argument: 'imagery_offset' #79

Closed
jreiberkyle opened this issue Apr 20, 2018 · 1 comment · Fixed by #81
Closed

preview fails with: missing 1 required positional argument: 'imagery_offset' #79

jreiberkyle opened this issue Apr 20, 2018 · 1 comment · Fixed by #81

Comments

@jreiberkyle
Copy link
Contributor

I am running label-maker version 0.3.1.

When I run label-maker preview -n 3, the following error is thrown:

Traceback (most recent call last):
  File "/opt/conda/bin/label-maker", line 11, in <module>
    sys.exit(cli())
  File "/opt/conda/lib/python3.6/site-packages/label_maker/main.py", line 87, in cli
    preview(dest_folder=dest_folder, number=number, **config)
TypeError: preview() missing 1 required positional argument: 'imagery_offset'

I don't see anything in the README or the cli help mentioning imagery_offset in regard to the preview command.

Some initial digging shows that preview() does require imagery_offset as a positional argument. I'm not sure why that isn't being populated.

@drewbo
Copy link
Contributor

drewbo commented Apr 20, 2018

It's supposed to be optional (for offsetting GeoTIFFs) but I forgot to give a default value for the preview function (correct in `images).

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 a pull request may close this issue.

2 participants