Skip to content

2 small bugs found using Python 2.7.12 #5

@henrietteschwarz

Description

@henrietteschwarz

In wavelength_utils.py function twodfit()
pandas.DataFrame.icol has been deprecated http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.DataFrame.icol.html.
Solution: Replace .icol(i) with .iloc[:, i]

In image_lib.py function cut_out()
Python complained that slice indices must be integers.
Solution: Place int() around both 'top' and 'bot' everywhere in the function.

After implementing the above 2 solutions, everything ran smoothly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions