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

Adamfuller zz patch 1 #29

Merged
merged 4 commits into from
Aug 31, 2021

Conversation

adamfuller-zz
Copy link
Contributor

Hi Kip, I wound up closing my original PR and creating this new one.

temp_crs_code = geotiff_metadata["ProjectedCSTypeGeoKey"].value
if hasattr(geotiff_metadata["ProjectedCSTypeGeoKey"], 'value'):
temp_crs_code = geotiff_metadata["ProjectedCSTypeGeoKey"].value
else
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamfuller-zz Looks like you left out a : on your else statement

@KipCrossing
Copy link
Owner

You can test your changes by running:

python -m pytest

You may need to install pytest

@adamfuller-zz
Copy link
Contributor Author

God not a great first outing. Yep I thought I would be clever and make my commit through the github web editor without actually running the code (or using pytest, I'd never used it but I installed it and have run it successfully now yay). Unfortunately for geotiff, this is the first public repo I have contributed to, your karma is definately +1 now.

Copy link
Owner

@KipCrossing KipCrossing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@KipCrossing
Copy link
Owner

God not a great first outing. Yep I thought I would be clever and make my commit through the github web editor without actually running the code (or using pytest, I'd never used it but I installed it and have run it successfully now yay). Unfortunately for geotiff, this is the first public repo I have contributed to, your karma is definately +1 now.

All good. A great way to learn is to make mistakes - especially in a public setting. I welcome all patches as it's impossible for me to know about all the edge cases; such as this one. Thanks for the PR

@KipCrossing KipCrossing merged commit 0942fd7 into KipCrossing:main Aug 31, 2021
@KipCrossing
Copy link
Owner

The new version it up the your fix: https://pypi.org/project/geotiff/0.2.3/

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