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

2 small bugs found using Python 2.7.12 #5

Open
henrietteschwarz opened this issue Sep 1, 2017 · 0 comments
Open

2 small bugs found using Python 2.7.12 #5

henrietteschwarz opened this issue Sep 1, 2017 · 0 comments

Comments

@henrietteschwarz
Copy link

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.

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

No branches or pull requests

1 participant