GithubHelp home page GithubHelp logo

Comments (5)

willskor avatar willskor commented on June 2, 2024

Updated issue 2 to be more clear.

from earthpy.

mbjoseph avatar mbjoseph commented on June 2, 2024

Hello @willskor! Thanks for opening this issue. See below for some details:

  1. This is great. I am also noticing that the arr_out argument is not described in the docstring for stack_raster_tifs. https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L71-L78

If you can add a description of what the arr_out argument expects and what it does to both the spatial-raster.rst file and the earthpy/spatial.py file, that would be awesome!

  1. This sounds good. I would recommend formatting the comments to match PEP 8, and changing the comments to be something like:

https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L66 changes to

# TODO: include a no data value here if provided ...

https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L252-L253 changes to

# TODO: verify colorbar works with the latest matplotlib, and is not too wide

I would just delete these two comments: https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L344-L345 The first comment is redundant with the docstring for plot_rgb, and the second comment seems to be more of an internal dialogue from the developer, that doesn't need to persist in the source code.

When you submit your pull request, please "@" me by including @mbjoseph in the pull request description. Thanks!

from earthpy.

willskor avatar willskor commented on June 2, 2024

Thanks Max, will do!
One last thing. I'm also confused about this comment: https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L65
I'm not sure what it is referring to.
This is another example of some code that should probably be deleted, or made into a TODO:
https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L441

from earthpy.

mbjoseph avatar mbjoseph commented on June 2, 2024

I think you can go ahead and delete https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L65

For https://github.com/earthlab/earthpy/blob/master/earthpy/spatial.py#L441, it would be great if you could replace the existing comment with:

# TODO: write test case for just one color

Thanks @willskor!

from earthpy.

mbjoseph avatar mbjoseph commented on June 2, 2024

Solved by #68

from earthpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.