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

Tiff tasks parameter folder renamed to path #768

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

zigaLuksic
Copy link
Collaborator

It's often not a folder, so it's very confusing...

Ellipsis as a default seemed like the best way to signal that this might still be required (using None would be odd).

  • TiffTask(feature, my_path) works as before
  • TiffTask(feature) will raise a TypeError that the parameter path is missing (similar to what would happen before)
  • TiffTask(feature, path=my_path) works as intended
  • TiffTask(feature, folder=my_path) also works as previously intended, but also warns the user

@zigaLuksic zigaLuksic requested a review from mlubej November 3, 2023 12:32
eolearn/io/raster_io.py Show resolved Hide resolved
eolearn/io/raster_io.py Outdated Show resolved Hide resolved
eolearn/io/raster_io.py Outdated Show resolved Hide resolved
eolearn/io/raster_io.py Outdated Show resolved Hide resolved
@zigaLuksic
Copy link
Collaborator Author

thanks for the new docstrings, much clearer 🙇

@zigaLuksic zigaLuksic merged commit 7eb980e into develop Nov 6, 2023
7 checks passed
@zigaLuksic zigaLuksic deleted the import-tiff-parameter-rename branch November 6, 2023 11:09
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.

2 participants