SpaceNetChallenge / utilities

Packages intended to assist in the preprocessing of SpaceNet satellite imagery data corpus to a format that is consumable by machine learning algorithms.
Other
248 stars 97 forks source link

Write docstrings for all functions in inferenceTools #94

Open nrweir opened 5 years ago

nrweir commented 5 years ago

Write docstrings for all functions

We need to begin writing docstrings for all of the functions in the package.

Important components:

Example:

def rescale_image(image_input, lower_limit=0, upper_limit=255):
    """Re-scale image intensities.

    Arguments:
    ------------
    image_input (numpy array of ints, required): An image in numpy array format. Values should be 
        integers.
    lower_limit (int, optional): Lower limit for original pixel intensity values. Defaults to 0.
    upper_limit(int, optional): Upper limit for original pixel intensity values. Defaults to 255.

    Returns:
    ---------
    A numpy array of the same dtype with values in the range (lower_limit, upper_limit)
    rescaled to [0, 255].
    """

    (Function defined here)

Format: If authors want to add docstrings in whatever format you like, feel free, but these will eventually need to be formatted according to Sphinx formats, so if you put in the work to use that style you'll be cutting out future re-structuring effort.

nrweir commented 5 years ago

Going to focus on inferenceTools as the starting example. Building off of #106 to include sphinx-formatted stuff.